コード例 #1
0
ファイル: FormDatVieiwer.cs プロジェクト: Tellus/anachronox1
        protected void doOpenFileAction()
        {
            DatOpenFileDialog.ShowDialog(this);

            if (Archive != null) Archive.Dispose();
            Archive = new DatSupport.DatArchive(DatOpenFileDialog.FileName);

            // Do a swift refresh.
            RefreshTreeview();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Tellus/anachronox1
        public static void TestDatExtraction()
        {
            DatSupport.DatArchive df = new DatSupport.DatArchive();

            df.OpenFile(@"D:\git\Anachronox\Anchronox\DebugApp\SPRITES.dat");

            List<string> stuff = df.GetDirectories();

            foreach (string s in stuff)
            {
                Console.WriteLine(s);
            }

            df.ExtractAll(@"D:\sprites");
        }