From 65eb9901f17f210aab467eabfc090c872c08755a Mon Sep 17 00:00:00 2001 From: mageven <62494521+mageven@users.noreply.github.com> Date: Sat, 20 Feb 2021 05:55:01 +0530 Subject: Allow modding AddOnContent RomFS (#2024) Simplify some misc logic --- Ryujinx.HLE/HOS/ApplicationLoader.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Ryujinx.HLE/HOS/ApplicationLoader.cs') diff --git a/Ryujinx.HLE/HOS/ApplicationLoader.cs b/Ryujinx.HLE/HOS/ApplicationLoader.cs index cc9b25fb..fb2b9770 100644 --- a/Ryujinx.HLE/HOS/ApplicationLoader.cs +++ b/Ryujinx.HLE/HOS/ApplicationLoader.cs @@ -72,9 +72,6 @@ namespace Ryujinx.HLE.HOS _fileSystem = fileSystem; _controlData = new BlitStruct(1); - - // Clear Mods cache - _fileSystem.ModLoader.Clear(); } public void LoadCart(string exeFsDir, string romFsFile = null) @@ -88,7 +85,7 @@ namespace Ryujinx.HLE.HOS Npdm metaData = ReadNpdm(codeFs); - _fileSystem.ModLoader.CollectMods(TitleId, _fileSystem.ModLoader.GetModsBasePath()); + _fileSystem.ModLoader.CollectMods(new[] { TitleId }, _fileSystem.ModLoader.GetModsBasePath()); if (TitleId != 0) { @@ -377,7 +374,7 @@ namespace Ryujinx.HLE.HOS Npdm metaData = ReadNpdm(codeFs); - _fileSystem.ModLoader.CollectMods(TitleId, _fileSystem.ModLoader.GetModsBasePath()); + _fileSystem.ModLoader.CollectMods(_contentManager.GetAocTitleIds().Prepend(TitleId), _fileSystem.ModLoader.GetModsBasePath()); if (controlNca != null) { -- cgit v1.2.3