ctrtool: updated exheader/ncch/exefs code

Fixed unnecessary string related code. Corrected system saveid check.
Other misc changes.
This commit is contained in:
3DSGuy
2014-04-21 18:21:06 +08:00
parent 07afa7c498
commit c56a16756e
5 changed files with 123 additions and 85 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ void exefs_save(exefs_context* ctx, u32 index, u32 flags)
ctr_init_counter(&ctx->aes, ctx->key, ctx->counter);
ctr_add_counter(&ctx->aes, offset / 0x10);
if (strncmp(name,".code",5) == 0 && ctx->compressedflag && ((flags & RawFlag) == 0))
if (index == 0 && ctx->compressedflag && ((flags & RawFlag) == 0))
{
fprintf(stdout, "Decompressing section %s to %s...\n", name, outfname);