Beispiel #1
0
        protected override void OnClosing(CancelEventArgs e)
        {
            I18N.SaveI18NFile();

            if (IsValidProcess &&
                hlvrModLauncher.IsGameRunning() &&
                HLVRSettingsManager.LauncherSettings.GeneralSettings[LauncherSettings.CategoryLauncher][LauncherSettings.AutoCloseGame].IsTrue())
            {
                hlvrModLauncher.TerminateGame();
            }

            singleProcessEnforcer.Dispose();
            try { if (DebugMonitor.IsStarted)
                  {
                      DebugMonitor.Stop();
                  }
            } catch (Exception) { }
        }