From 3386e8ff7af3f846b2ef753e9fd2ccdb8366d2de Mon Sep 17 00:00:00 2001 From: Denis <93516910+Bussun@users.noreply.github.com> Date: Sun, 9 Jan 2022 00:03:08 +0100 Subject: [PATCH] boi - it took me so long to figure this out so this yaz0 decoder actually doesn't do its job properly with SM3DAS files, it'll need to be rewritten (btw yaz0dec from szstools has the same problem) --- BMGEditor/FS/Compression.cs | 2 +- BMGEditor/FS/Yaz0Stream.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BMGEditor/FS/Compression.cs b/BMGEditor/FS/Compression.cs index 0cd245a..c05a6c6 100644 --- a/BMGEditor/FS/Compression.cs +++ b/BMGEditor/FS/Compression.cs @@ -5,7 +5,7 @@ using System.Text; namespace BMGEditor { - public static class Yaz0 + public static class Yaz0 // ONLY WORKS WITH BIG ENDIAN - TO REWRITE !! { // TODO: put compression in use? // note: compression is slow when dealing with large files (eg. 3D models) diff --git a/BMGEditor/FS/Yaz0Stream.cs b/BMGEditor/FS/Yaz0Stream.cs index f2709cc..7f5be97 100644 --- a/BMGEditor/FS/Yaz0Stream.cs +++ b/BMGEditor/FS/Yaz0Stream.cs @@ -6,7 +6,7 @@ using System.IO; namespace BMGEditor { - public class Yaz0Stream : MemoryStream + public class Yaz0Stream : MemoryStream //ONLY WORKS WITH BIG ENDIAN - TO REWRITE !! { public Yaz0Stream(Stream backend) : base(1)