Fix STRG chunk for Wii U DKCTF

This commit is contained in:
Luke Street
2023-02-15 13:47:12 -05:00
parent 30264e0694
commit 576d94b013
2 changed files with 9 additions and 2 deletions
+8 -2
View File
@@ -83,8 +83,14 @@ typedef struct
// Byteswapped
uint32 type <read=FourCCInt>;
GUID id;
uint32 length;
char name[length];
// Wii U DKCTF uses a null terminated string here
// but PACK/TOCC version is the same
if (!isDKCTF || ReadByte() == 0) {
uint32 length;
char name[length];
} else {
string name;
}
} StringEntry <
name=(Str("%s (%s) %s", name, FourCCInt(type), GUIDToString(id)))
>;
+1
View File
@@ -72,6 +72,7 @@ local GUID GUIDZero <hidden=true>;
typedef enum <byte>
{
NONE = 0x0,
LZSS_8 = 0x1,
LZSS_16 = 0x2,
LZSS_32 = 0x3,