ctrtool: tmd bug fix

This commit is contained in:
applestash
2014-09-09 13:43:17 +10:00
parent 5c21441877
commit 07aa854e60
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ void cia_process(cia_context* ctx, u32 actions)
tmd_set_offset(&ctx->tmd, ctx->offsettmd); tmd_set_offset(&ctx->tmd, ctx->offsettmd);
tmd_set_size(&ctx->tmd, ctx->sizetmd); tmd_set_size(&ctx->tmd, ctx->sizetmd);
tmd_set_usersettings(&ctx->tmd, ctx->usersettings); tmd_set_usersettings(&ctx->tmd, ctx->usersettings);
tmd_process(&ctx->tmd, actions); tmd_process(&ctx->tmd, (actions & ~InfoFlag));
if (actions & VerifyFlag) if (actions & VerifyFlag)
{ {
-2
View File
@@ -42,12 +42,10 @@ void tmd_process(tmd_context* ctx, u32 actions)
fseek(ctx->file, ctx->offset, SEEK_SET); fseek(ctx->file, ctx->offset, SEEK_SET);
fread(ctx->buffer, 1, ctx->size, ctx->file); fread(ctx->buffer, 1, ctx->size, ctx->file);
/*
if (actions & InfoFlag) if (actions & InfoFlag)
{ {
tmd_print(ctx); tmd_print(ctx);
} }
*/
} }
} }