mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Quick fix for decompressing incase a check fails or is inaccurate
This commit is contained in:
parent
6ec78fa2c5
commit
bb436b35e8
1 changed files with 18 additions and 9 deletions
|
@ -183,6 +183,9 @@ namespace Toolbox.Library.IO
|
||||||
|
|
||||||
if (stream.Length < 8) return null;
|
if (stream.Length < 8) return null;
|
||||||
|
|
||||||
|
//Try catch incase it fails, continute to load the file anyways if the check may be false
|
||||||
|
try
|
||||||
|
{
|
||||||
//Check all supported compression formats and decompress. Then loop back
|
//Check all supported compression formats and decompress. Then loop back
|
||||||
if (!Compressed)
|
if (!Compressed)
|
||||||
{
|
{
|
||||||
|
@ -201,6 +204,12 @@ namespace Toolbox.Library.IO
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine(ex.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
stream.Position = streamStartPos;
|
stream.Position = streamStartPos;
|
||||||
foreach (IFileFormat fileFormat in FileManager.GetFileFormats())
|
foreach (IFileFormat fileFormat in FileManager.GetFileFormats())
|
||||||
|
|
Loading…
Add table
Reference in a new issue