Show icon.bin for mounted CIAs

This commit is contained in:
d0k3 2017-04-12 01:05:22 +02:00
parent 729997078e
commit f6f45f242e

View File

@ -26,6 +26,7 @@
#define NAME_CIA_TMD "tmd.bin" #define NAME_CIA_TMD "tmd.bin"
#define NAME_CIA_TMDCHUNK "tmdchunks.bin" #define NAME_CIA_TMDCHUNK "tmdchunks.bin"
#define NAME_CIA_META "meta.bin" #define NAME_CIA_META "meta.bin"
#define NAME_CIA_ICON "icon.bin"
#define NAME_CIA_CONTENT "%04X.%08lX%s" // index.id(.ext) #define NAME_CIA_CONTENT "%04X.%08lX%s" // index.id(.ext)
#define NAME_NCSD_HEADER "ncsd.bin" #define NAME_NCSD_HEADER "ncsd.bin"
@ -315,6 +316,12 @@ bool BuildVGameCiaDir(void) {
templates[n].keyslot = 0xFF; templates[n].keyslot = 0xFF;
templates[n].flags = 0; templates[n].flags = 0;
n++; n++;
strncpy(templates[n].name, NAME_CIA_ICON, 32);
templates[n].offset = info.offset_meta + 0x400;
templates[n].size = info.size_meta - 0x400;
templates[n].keyslot = 0xFF;
templates[n].flags = 0;
n++;
} }
// contents // contents