public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _sarc = new Cetera.Archive.SARC(FileInfo.OpenRead()); } }
public void Load(string filename) { FileInfo = new FileInfo(filename); using (var br = new BinaryReaderX(FileInfo.OpenRead())) { br.ReadBytes(4); _sarc = new Cetera.Archive.SARC(new MemoryStream(ZLib.Decompress(new MemoryStream(br.ReadBytes((int)FileInfo.Length - 4))))); } }