diff --git a/Ryujinx.HLE/HOS/UserChannelPersistence.cs b/Ryujinx.HLE/HOS/UserChannelPersistence.cs index 13e7364f0b..4b041ce88a 100644 --- a/Ryujinx.HLE/HOS/UserChannelPersistence.cs +++ b/Ryujinx.HLE/HOS/UserChannelPersistence.cs @@ -10,6 +10,7 @@ namespace Ryujinx.HLE.HOS public int PreviousIndex { get; private set; } public int Index { get; private set; } public ProgramSpecifyKind Kind { get; private set; } + public bool ShouldRestart { get; set; } public UserChannelPersistence() { @@ -42,6 +43,7 @@ namespace Ryujinx.HLE.HOS { Kind = kind; PreviousIndex = Index; + ShouldRestart = true; switch (kind) { diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index 4cfcd48917..dafb5a4513 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -975,9 +975,10 @@ namespace Ryujinx.Ui private void HandleRelaunch() { - // If the previous index isn't -1, that mean we are relaunching. - if (_userChannelPersistence.PreviousIndex != -1) + if (_userChannelPersistence.PreviousIndex != -1 && _userChannelPersistence.ShouldRestart) { + _userChannelPersistence.ShouldRestart = false; + LoadApplication(_gamePath); } else