diff --git a/File_Format_Library/FileFormats/Archives/GFPAK.cs b/File_Format_Library/FileFormats/Archives/GFPAK.cs index cf95f2b1..a0f98566 100644 --- a/File_Format_Library/FileFormats/Archives/GFPAK.cs +++ b/File_Format_Library/FileFormats/Archives/GFPAK.cs @@ -549,13 +549,6 @@ namespace FirstPlugin GFPAKHashCache.EnsureHashCache(); version = reader.ReadInt32(); - - if (version == 0x1000 && !File.Exists($"{Runtime.ExecutableDir}\\oo2core_6_win64.dll")) - { - MessageBox.Show("It is necessary to have 'oo2core_6_win64.dll' in the executable folder."); - return; - } - uint padding = reader.ReadUInt32(); uint FileCount = reader.ReadUInt32(); FolderCount = reader.ReadInt32(); diff --git a/Switch_Toolbox_Library/Compression/STLibraryCompression.cs b/Switch_Toolbox_Library/Compression/STLibraryCompression.cs index 75fe38b3..fd2657a2 100644 --- a/Switch_Toolbox_Library/Compression/STLibraryCompression.cs +++ b/Switch_Toolbox_Library/Compression/STLibraryCompression.cs @@ -717,6 +717,11 @@ namespace Toolbox.Library.IO { public static byte[] Decompress(byte[] data, int decompressedSize) { + if (!File.Exists($"{Runtime.ExecutableDir}\\oo2core_6_win64.dll")) + { + MessageBox.Show("'oo2core_6_win64.dll' not found in the executable folder! User must provide their own copy!"); + return data; + } return Toolbox.Library.Compression.Oodle.Decompress(data, decompressedSize); }