Beispiel #1
0
        private bool CheckFormat(LB83File file)
        {
            FourCC fourCC = file.ReadFourCC();

            if (fourCC == "LB83")
            {
                return(true);
            }
            return(false);
        }
Beispiel #2
0
        protected override SRFile CreateFromStream(string path, Stream stream)
        {
            var file = new LB83File(path, stream);

            if (!CheckFormat(file))
            {
                file.Close();
                file = null;
            }
            return(file);
        }