Add new magic number.

This commit is contained in:
2020-03-01 19:58:09 +00:00
parent d892f90a59
commit 629401939d
5 changed files with 12 additions and 9 deletions

View File

@@ -80,7 +80,7 @@ void* open(const char* filepath)
return NULL;
}
if(ctx->header.identifier != DIC_MAGIC)
if(ctx->header.identifier != DIC_MAGIC && ctx->header.identifier != AARU_MAGIC)
{
free(ctx);
errno = AARUF_ERROR_NOT_AARUFORMAT;
@@ -1172,7 +1172,7 @@ void* open(const char* filepath)
// Initialize ECC for Compact Disc
ctx->eccCdContext = (CdEccContext*)ecc_cd_init();
ctx->magic = DIC_MAGIC;
ctx->magic = AARU_MAGIC;
ctx->libraryMajorVersion = LIBAARUFORMAT_MAJOR_VERSION;
ctx->libraryMinorVersion = LIBAARUFORMAT_MINOR_VERSION;