private void Application_Startup(object sender, StartupEventArgs e) { var window = new MainWindow(); // 强制将游戏文件夹路径设置为当前文件夹 DOOMEternal.GameDirectory = Environment.CurrentDirectory; DOOMEternal.InitNecessaryDirectory(); // 若已有配置文件,则读取,否则进行初始化 if (File.Exists(DOOMEternal.LauncherProfileFile)) { DEModManager.GetInstance().LoadProfile(DOOMEternal.LauncherProfileFile); } else { DEModManager.GetInstance().Initialize(); } DOOMEternal.ModificationSaved = true; window.ShowDialog(); }
private void ClearUnusedModFiles_Click(object sender, RoutedEventArgs e) { DEModManager.GetInstance().TipToClearUnusedModFiles(); }