From 245a503a18d92a72cdb6c89b08f40f88b12f1571 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Thu, 5 Sep 2019 21:52:10 -0400 Subject: [PATCH] Fix little endian bin.gz --- .../FileFormats/HyruleWarriors/HWBinGzResource.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/HyruleWarriors/HWBinGzResource.cs b/File_Format_Library/FileFormats/HyruleWarriors/HWBinGzResource.cs index 66479c57..07b0a375 100644 --- a/File_Format_Library/FileFormats/HyruleWarriors/HWBinGzResource.cs +++ b/File_Format_Library/FileFormats/HyruleWarriors/HWBinGzResource.cs @@ -48,6 +48,8 @@ namespace FirstPlugin private void CheckEndianness(FileReader reader) { + reader.SetByteOrder(false); + uint Count = reader.ReadUInt32(); uint FirstOffset = reader.ReadUInt32(); @@ -113,7 +115,6 @@ namespace FirstPlugin using (var reader = new FileReader(stream)) { CheckEndianness(reader); - reader.SetByteOrder(true); uint Count = reader.ReadUInt32();