public override bool Analyze(string path)
 {
     using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read))
     {
         return(AnalyzeFromStream(LLF_IO.EnsureUnpacked(fs)));
     }
 }
Example #2
0
        public void LoadLevel(string name)
        {
            LastLoadName = name;

            dlf = new DLF_IO();
            using (FileStream fs = new FileStream(ArxPaths.GetDlfPath(name), FileMode.Open, FileAccess.Read))
            {
                dlf.LoadFrom(DLF_IO.EnsureUnpacked(fs));
            }

            llf = new LLF_IO();
            using (FileStream fs = new FileStream(ArxPaths.GetLlfPath(name), FileMode.Open, FileAccess.Read))
            {
                llf.LoadFrom(LLF_IO.EnsureUnpacked(fs));
            }

            fts = new FTS_IO();
            using (FileStream fs = new FileStream(ArxPaths.GetFtsPath(name), FileMode.Open, FileAccess.Read))
            {
                fts.LoadFrom(FTS_IO.EnsureUnpacked(fs));
            }
        }