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 (_screen != null) { _screen.Exit(); _screenExitStatus.WaitOne(); } } Dispose(); Profile.FinishProfiling(); DiscordIntegrationModule.Exit(); Logger.Shutdown(); Application.Quit(); }
private void Exit_Pressed(object sender, EventArgs args) { _screen?.Exit(); End(); }
private void StopEmulation_Pressed(object sender, EventArgs args) { _screen?.Exit(); }
private void Exit_Pressed(object sender, EventArgs args) { _screen?.Exit(); End(_emulationContext); }