summaryrefslogtreecommitdiff
path: root/tools/nitrogfx/gfx.c
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2021-05-19 22:58:03 +0100
committerred031000 <rubenru09@aol.com>2021-05-19 22:58:03 +0100
commit73d208810e888514be6cb13bd34db9c8bc47032c (patch)
treec349b2aaa00b6913e3481aa5fdc52e71ce16a1b9 /tools/nitrogfx/gfx.c
parent929c5c94cf404904ea4601e7c083c716f84ceca9 (diff)
implement nitrogfx ncer mapping type
Diffstat (limited to 'tools/nitrogfx/gfx.c')
-rw-r--r--tools/nitrogfx/gfx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/nitrogfx/gfx.c b/tools/nitrogfx/gfx.c
index 305fbeb2..f5ff30e7 100644
--- a/tools/nitrogfx/gfx.c
+++ b/tools/nitrogfx/gfx.c
@@ -774,8 +774,9 @@ void WriteNtrCell(char *path, struct JsonToCellOptions *options)
KBECHeader[4] = (size + 0x20) & 0xFF; //size
KBECHeader[5] = (size + 0x20) >> 8; //unlikely to be more than 16 bits, but there are 32 allocated, change if necessary
- fwrite(KBECHeader, 1, 0x20, fp);
+ KBECHeader[16] = (options->mappingType & 0xFF); //not possible to be more than 8 bits, though 32 are allocated
+ fwrite(KBECHeader, 1, 0x20, fp);
unsigned char *KBECContents = malloc(size);