summaryrefslogtreecommitdiff
path: root/tools/nitrogfx/gfx.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-05-19 21:24:24 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-05-19 21:24:24 -0400
commitaa152bfb68aa828481806b7399e8c521bec61187 (patch)
tree257332e920814887b2f27cd9a26ab0a301fda14d /tools/nitrogfx/gfx.c
parent84a6ed639c0887d084b0d9785f842dca9621b8e8 (diff)
parent98f11489806b6dba4c6080c5429b2368d3092541 (diff)
Merge remote-tracking branch 'origin/master' into pikalax_work
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);