private void OnClosing() { // request monitors to exit gracefully if (LauncherMonitor != null) { LauncherMonitor.Stop(); } if (GameMonitor != null) { GameMonitor.Stop(); } // forcefully kill externals on OSOL exit if requested if (SetHnd.Options.ForceKillExternals && PreLauncherPL != null && PreLauncherPL.ProcWrapper.IsRunning()) { ProcessWrapper.KillProcTreeByName(PreLauncherPL.ProcWrapper.ProcessName); } if (SetHnd.Options.ForceKillExternals && PostGamePL != null && PostGamePL.ProcWrapper.IsRunning()) { ProcessWrapper.KillProcTreeByName(PostGamePL.ProcWrapper.ProcessName); } // clean up system tray TrayUtil.RefreshTrayArea(); // exit gracefully ExitRequested = true; }
private void OnClosing() { // request monitors to exit gracefully if (LauncherMonitor != null) { LauncherMonitor.Stop(); } if (GameMonitor != null) { GameMonitor.Stop(); } // clean up system tray TrayUtil.RefreshTrayArea(); // exit gracefully ExitRequested = true; }