public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _mmb = new MMB(FileInfo.OpenRead()); } }
public bool Identify(string filename) { var result = true; try { using (var br = new BinaryReaderX(File.OpenRead(filename))) if (br.PeekInt32() == 0) { return(false); } var mmb = new MMB(File.OpenRead(filename)); } catch { result = false; } return(result); }