From cd8b251a13e5796d2f055c9dd9aad2df575976a2 Mon Sep 17 00:00:00 2001 From: Denis <93516910+Bussun@users.noreply.github.com> Date: Sun, 26 Dec 2021 21:34:20 +0100 Subject: [PATCH] It can now read LE files without crashing ! WARNING HOWEVER, only from not Yaz0 encoded RARC files and string parsing doesn't work as expected --- BMGEditor/FS/BMG.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BMGEditor/FS/BMG.cs b/BMGEditor/FS/BMG.cs index 272689a..b71f3ce 100644 --- a/BMGEditor/FS/BMG.cs +++ b/BMGEditor/FS/BMG.cs @@ -99,9 +99,8 @@ namespace BMGEditor m_File.Stream.Position += 0x01; } - while (m_File.Reader.ReadByte() != 0x44) + while (m_File.Stream.Position % 32 != 0x00) m_File.Stream.Position += 0x01; - m_File.Stream.Position -= 1; //DAT1 DAT1sectionStart = m_File.Stream.Position;