magic check ZCMP
This commit is contained in:
parent
fc8d837609
commit
d99638e6ec
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user