diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 9ab8f5de..bfc7f3fd 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide index 5fc850f8..e3a5e405 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide differ diff --git a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal index c76d1332..85b07e64 100644 Binary files a/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal and b/.vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-wal differ diff --git a/Switch_FileFormatsMain/FileFormats/Archives/SDF.cs b/Switch_FileFormatsMain/FileFormats/Archives/SDF.cs index 4a5fb8e6..729fce0e 100644 --- a/Switch_FileFormatsMain/FileFormats/Archives/SDF.cs +++ b/Switch_FileFormatsMain/FileFormats/Archives/SDF.cs @@ -150,7 +150,7 @@ namespace FirstPlugin byte[] decomp = null; if (magic == 0xDFF25B82 || magic == 0xFD2FB528) decomp = STLibraryCompression.ZSTD.Decompress(CompressedBlock); - else if (header.Version > 22) + else if (magic == 0x184D2204) decomp = STLibraryCompression.Type_LZ4.Decompress(CompressedBlock); else decomp = STLibraryCompression.ZLIB.Decompress(CompressedBlock); diff --git a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache index dc123585..389eabe3 100644 Binary files a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache and b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache b/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache index d061efe6..487f87ac 100644 Binary files a/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache and b/Switch_FileFormatsMain/obj/Release/Switch_FileFormatsMain.csprojAssemblyReference.cache differ diff --git a/Switch_Toolbox_Library/IO/STFileLoader.cs b/Switch_Toolbox_Library/IO/STFileLoader.cs index c21365bb..621678fa 100644 --- a/Switch_Toolbox_Library/IO/STFileLoader.cs +++ b/Switch_Toolbox_Library/IO/STFileLoader.cs @@ -124,6 +124,15 @@ namespace Switch_Toolbox.Library.IO return OpenFileFormat(FileName, data, LeaveStreamOpen, InArchive, archiveNode, true, CompressionType.Gzip, DecompressedFileSize, CompressedFileSize); } + if (MagicHex == 0x184D2204) + { + if (data == null) + data = File.ReadAllBytes(FileName); + + data = STLibraryCompression.Type_LZ4.Decompress(data); + return OpenFileFormat(FileName, data, LeaveStreamOpen, InArchive, archiveNode, true, + CompressionType.Lz4, DecompressedFileSize, CompressedFileSize); + } if (Path.GetExtension(FileName) == ".lz" && CompType == CompressionType.None) { if (data == null)