Пример #1
0
        public void Load(string filename)
        {
            FileInfo = new FileInfo(filename);

            if (FileInfo.Exists)
            {
                _mmb = new MMB(FileInfo.OpenRead());
            }
        }
Пример #2
0
        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);
        }