From 924cd56948d5bc30f851aaeb56ee0cee6e3ad53c Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 15 Aug 2018 18:55:24 -0300 Subject: [PATCH] Remove hbmenu automatic load on process exit --- Ryujinx.HLE/OsHle/Horizon.cs | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/Ryujinx.HLE/OsHle/Horizon.cs b/Ryujinx.HLE/OsHle/Horizon.cs index 2d8cdb3045..afebce461e 100644 --- a/Ryujinx.HLE/OsHle/Horizon.cs +++ b/Ryujinx.HLE/OsHle/Horizon.cs @@ -186,28 +186,7 @@ namespace Ryujinx.HLE.OsHle internal void ExitProcess(int ProcessId) { - if (Processes.TryGetValue(ProcessId, out Process Process) && Process.NeedsHbAbi) - { - string NextNro = Homebrew.ReadHbAbiNextLoadPath(Process.Memory, Process.HbAbiDataPosition); - - Ns.Log.PrintInfo(LogClass.Loader, $"HbAbi NextLoadPath {NextNro}"); - - if (NextNro == string.Empty) - { - NextNro = "sdmc:/hbmenu.nro"; - } - - NextNro = NextNro.Replace("sdmc:", string.Empty); - - NextNro = Ns.VFs.GetFullPath(Ns.VFs.GetSdCardPath(), NextNro); - - if (File.Exists(NextNro)) - { - LoadProgram(NextNro); - } - } - - if (Processes.TryRemove(ProcessId, out Process)) + if (Processes.TryRemove(ProcessId, out Process Process)) { Process.StopAllThreadsAsync(); Process.Dispose();