summaryrefslogtreecommitdiff
path: root/tools/nitrogfx/util.c
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-07-10 17:25:12 +0100
committerred031000 <rubenru09@aol.com>2020-07-10 17:26:17 +0100
commit7762fa4d5454be7be0e89b09986f31bbdff79a83 (patch)
tree2c04561d5b08c7e21f863250b2bc06591381e99a /tools/nitrogfx/util.c
parentd022486e419b8651a9716fb50e0cedcbb6733168 (diff)
bit of work on graphics, mostly setup
Diffstat (limited to 'tools/nitrogfx/util.c')
-rw-r--r--tools/nitrogfx/util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/nitrogfx/util.c b/tools/nitrogfx/util.c
index 73a128a1..304a2319 100644
--- a/tools/nitrogfx/util.c
+++ b/tools/nitrogfx/util.c
@@ -124,13 +124,18 @@ void WriteWholeFile(char *path, void *buffer, int bufferSize)
fclose(fp);
}
-void WriteGenericNtrHeader(FILE* fp, const char* magicNumber, uint32_t size, bool byteorder)
+void WriteGenericNtrHeader(FILE* fp, const char* magicNumber, uint32_t size, bool byteorder, bool version101)
{
unsigned char header[0x10] =
{ 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFE, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x00 };
//magic number
memcpy(header, magicNumber, 4);
+ if (version101)
+ {
+ header[6] = 0x01;
+ }
+
//byte order
if (!byteorder)
{