public static string GetOrSetAuthor() { string name = GlobalStuff.FindSetting("author"); if (name == "") { string input = Microsoft.VisualBasic.Interaction.InputBox("Please enter author name", "Author name", "noname"); if (input != "") { name = input; GlobalStuff.AssignSetting("author", name); } else { name = "noname"; } } return(name); }
private void StartScan(string basepath) { rtb1.Text = ""; Log("Starting Scan..."); Mod.GetOrSetAuthor(); Stopwatch sp = new Stopwatch(); sp.Start(); GlobalStuff.AssignSetting("isNew", "0"); GlobalStuff.settings.Add("gamepath", basepath); Database.SaveSettings(); CATFile cat = ScanCAT(); ScanFiles(); ScanBundles(cat); sp.Stop(); Log("\n\n===============\nTime : " + sp.Elapsed.ToString() + "\nDone."); MessageBox.Show("Done."); }