示例#1
0
 private void ContextSDSUnpack_Click(object sender, EventArgs e)
 {
     if (fileListView.SelectedItems.Count > 0)
     {
         object Tag = fileListView.SelectedItems[0].Tag;
         if (Tag is FileSDS)
         {
             FileSDS SDSFile = (Tag as FileSDS);
             SDSFile.Open();
             OpenSDSDirectory(SDSFile.GetUnderlyingFileInfo());
         }
     }
 }
示例#2
0
        private static void ProcessCommandArguments(string[] Args)
        {
            Cursor.Current = Cursors.WaitCursor;
            if (Args[0].Equals("-gt"))
            {
                GamesEnumerator GameType = (GamesEnumerator)Enum.Parse(typeof(GamesEnumerator), Args[1]);

                if (Args[2].Equals("-SDSPack"))
                {
                    string SDSPath    = Args[3];
                    string ExportPath = Args[4];

                    FileInfo SDSFileInfo = new FileInfo(SDSPath);
                    FileSDS  SDSFile     = new FileSDS(SDSFileInfo);
                    SDSFile.SaveSDSWithCustomFolder(GameType, ExportPath);
                }
            }
            Cursor.Current = Cursors.Default;
        }