bugfix
This commit is contained in:
parent
e86f7ee784
commit
620367672a
1 changed files with 42 additions and 31 deletions
|
@ -24,16 +24,20 @@ namespace Ryujinx.UI
|
|||
|
||||
private static IAalOutput _audioOut;
|
||||
|
||||
private static GlScreen _screen;
|
||||
|
||||
private static Application _gtkApplication;
|
||||
|
||||
private static ListStore _tableStore;
|
||||
|
||||
private static bool _gameLoaded = false;
|
||||
|
||||
private static string _userId = "00000000000000000000000000000001";
|
||||
private static bool _ending = false;
|
||||
|
||||
private static bool _firstLoadComplete = false;
|
||||
|
||||
private static string _userId = "00000000000000000000000000000001";
|
||||
|
||||
private static TreeViewColumn favColumn;
|
||||
private static TreeViewColumn appColumn;
|
||||
private static TreeViewColumn devColumn;
|
||||
|
@ -392,9 +396,9 @@ namespace Ryujinx.UI
|
|||
{
|
||||
Configuration.ConfigureHid(_device, SwitchSettings.SwitchConfig);
|
||||
|
||||
using (GlScreen screen = new GlScreen(_device, _renderer))
|
||||
using (_screen = new GlScreen(_device, _renderer))
|
||||
{
|
||||
screen.MainLoop();
|
||||
_screen.MainLoop();
|
||||
|
||||
End();
|
||||
}
|
||||
|
@ -402,6 +406,10 @@ namespace Ryujinx.UI
|
|||
|
||||
private static void End()
|
||||
{
|
||||
if (!_ending)
|
||||
{
|
||||
_ending = true;
|
||||
|
||||
if (_gameLoaded)
|
||||
{
|
||||
try
|
||||
|
@ -446,6 +454,7 @@ namespace Ryujinx.UI
|
|||
Logger.Shutdown();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Picks an <see cref="IAalOutput"/> audio output renderer supported on this machine
|
||||
|
@ -545,11 +554,13 @@ namespace Ryujinx.UI
|
|||
|
||||
private void Exit_Pressed(object o, EventArgs args)
|
||||
{
|
||||
_screen?.Exit();
|
||||
End();
|
||||
}
|
||||
|
||||
private void Window_Close(object o, DeleteEventArgs args)
|
||||
{
|
||||
_screen?.Exit();
|
||||
End();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue