mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 04:39:11 +00:00
Made execution neater
This commit is contained in:
parent
ccf8c6b369
commit
9589d1c3a8
1 changed files with 9 additions and 4 deletions
|
@ -736,6 +736,14 @@ namespace Ryujinx.Ava
|
||||||
Logger.Info?.Print(LogClass.Emulation, "Emulation was paused");
|
Logger.Info?.Print(LogClass.Emulation, "Emulation was paused");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal void Close()
|
||||||
|
{
|
||||||
|
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime app)
|
||||||
|
{
|
||||||
|
app.MainWindow.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void InitializeSwitchInstance()
|
private void InitializeSwitchInstance()
|
||||||
{
|
{
|
||||||
// Initialize KeySet.
|
// Initialize KeySet.
|
||||||
|
@ -1006,10 +1014,7 @@ namespace Ryujinx.Ava
|
||||||
{
|
{
|
||||||
if (ConfigurationState.Instance.CloseOnEmulatorStop)
|
if (ConfigurationState.Instance.CloseOnEmulatorStop)
|
||||||
{
|
{
|
||||||
if (Application.Current.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime app)
|
Close();
|
||||||
{
|
|
||||||
app.MainWindow.Close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue