private void OpenGameDirectory_Click(object sender, RoutedEventArgs e)
 {
     try {
         DOOMEternal.OpenGameDirectory();
     }
     catch (Exception exp) {
         MessageBox.Show(exp.Message, "无法打开文件夹", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 调用模组加载器
 /// </summary>
 public bool LoadModHelper()
 {
     try {
         IsLaunching = true;
         if (!IsValidModPackSelected())
         {
             throw new InvalidOperationException("当前未选择有效模组");
         }
         CurrentModPack.Deploy();
         DOOMEternal.LaunchModLoader();
         return(true);
     }
     catch {
         return(false);
     }
     finally {
         IsLaunching = false;
     }
 }
 private void ViewLauncherProfile_Click(object sender, RoutedEventArgs e)
 {
     DOOMEternal.OpenLauncherProfile();
 }
Beispiel #4
0
 public void LaunchGame()
 {
     DOOMEternal.LaunchGame();
 }
Beispiel #5
0
 public void LaunchMod()
 {
     DOOMEternal.SetModLoaderProfile("AUTO_LAUNCH_GAME", 1);
     LoadModHelper();
 }