1
0
mirror of synced 2024-11-12 02:00:50 +01:00

magic check ZCMP

This commit is contained in:
KillzXGaming 2019-06-30 20:59:11 -04:00
parent fc8d837609
commit d99638e6ec
3 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -185,7 +185,7 @@ namespace Switch_Toolbox.Library.IO
return OpenFileFormat(FileName, data, LeaveStreamOpen, InArchive, archiveNode, true,
CompressionType.Zstb, DecompressedFileSize, CompressedFileSize);
}
if (MagicHex2 == 0x789C || MagicHex2 == 0x78DA || Path.GetExtension(FileName) == ".z" && CompType == CompressionType.None)
if (Magic == "ZCMP" || MagicHex2 == 0x789C || MagicHex2 == 0x78DA || Path.GetExtension(FileName) == ".z" && CompType == CompressionType.None)
{
if (data == null)
data = File.ReadAllBytes(FileName);