public bool Identify(System.IO.Stream stream) { using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true)) { reader.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian; return(reader.ReadUInt32() == 0x02020000); } }
public bool Identify(System.IO.Stream stream) { using (var reader = new Switch_Toolbox.Library.IO.FileReader(stream, true)) { bool IsMatch = reader.ReadUInt32() == 0xD6D1820C; reader.Position = 0; return(IsMatch || Utils.HasExtension(FileName, ".sp2")); } }