private void End(HLE.Switch device) { #if USE_DEBUGGING _debugger.Dispose(); #endif if (_ending) { return; } _ending = true; if (device != null) { UpdateGameMetadata(device.System.TitleIdText); if (_gLWidget != null) { // We tell the widget that we are exiting _gLWidget.Exit(); // Wait for the other thread to dispose the HLE context before exiting. _deviceExitStatus.WaitOne(); } } Dispose(); Profile.FinishProfiling(); DiscordIntegrationModule.Exit(); Logger.Shutdown(); Application.Quit(); }
private void End(HLE.Switch device) { #if USE_DEBUGGING _debugger.Dispose(); #endif if (_ending) { return; } _ending = true; if (device != null) { UpdateGameMetadata(device.System.TitleIdText); if (_gLWidget != null) { _gLWidget.Exit(); _screenExitStatus.WaitOne(); } } Dispose(); Profile.FinishProfiling(); DiscordIntegrationModule.Exit(); Logger.Shutdown(); Application.Quit(); }