Fix DKCTF NS messagetable from archive

This commit is contained in:
LolHacksRule
2023-02-19 12:12:44 -08:00
parent f711ed8df4
commit 4eaca6a17a
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ string AssetDirectoryEntryName(AssetDirectoryEntry& entry)
{
if (isDKCTF) {
// Read the chunk ver and subver from form descriptor
return Str("%s v%d.%d %s", entry.type, entry.data.form.versionA, entry.data.form.versionB, GUIDToString(entry.id));
return Str("%s v%d.%d %s", entry.type, entry.data.form.readerVersion, entry.data.form.writerVersion, GUIDToString(entry.id));
} else {
return Str("%s v%d.%d %s", entry.type, entry.versionA, entry.versionB, GUIDToString(entry.id));
}
+4 -4
View File
@@ -18,10 +18,6 @@ struct MSBTHeader {
ushort unk3;
uint fileSize;
byte padding[10]<hidden=true>;
if (isDKCTF) //Swap back
{
BigEndian();
}
};
struct TableHeader(string expectedMagic) {
@@ -135,6 +131,10 @@ struct Language (string expectedLanguage) {
LabelsSection labels;
AttributesSection attributes;
TextsSection texts;
if (isDKCTF) //Swap back
{
BigEndian();
}
} contents;
};