private void CreateGameWindow(HLE.Switch device) { device.Hid.InitializePrimaryController(ConfigurationState.Instance.Hid.ControllerType); using (_screen = new GlScreen(device)) { _screen.MainLoop(); } device.Dispose(); _emulationContext = null; _screen = null; _gameLoaded = false; DiscordIntegrationModule.SwitchToMainMenu(); _screenExitStatus.Set(); Application.Invoke(delegate { _stopEmulation.Sensitive = false; _firmwareInstallFile.Sensitive = true; _firmwareInstallDirectory.Sensitive = true; }); }
private static void CreateGameWindow() { _device.Hid.InitializePrimaryController(ConfigurationState.Instance.Hid.ControllerType); using (_screen = new GlScreen(_device, _renderer)) { _screen.MainLoop(); End(); } }
private static void CreateGameWindow() { Configuration.ConfigureHid(_device, SwitchSettings.SwitchConfig); using (_screen = new GlScreen(_device, _renderer)) { _screen.MainLoop(); End(); } }