diff options
| author | MutantAura <44103205+MutantAura@users.noreply.github.com> | 2022-03-06 21:12:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 22:12:01 +0100 |
| commit | ee174be57c69d5620f200103a403b42d7f69ed5f (patch) | |
| tree | ac60857c24278e22ea1cdef003703387e1c3f7d5 /Ryujinx.HLE/HOS | |
| parent | 0bcbe32367eeada2a5aa7e6bb2edccc22cababa3 (diff) | |
Mod loading from atmosphere SD directories (#3176)
* initial sd support
* GUI option
* alignment
* review changes
Diffstat (limited to 'Ryujinx.HLE/HOS')
| -rw-r--r-- | Ryujinx.HLE/HOS/ApplicationLoader.cs | 10 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/ModLoader.cs | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/ApplicationLoader.cs b/Ryujinx.HLE/HOS/ApplicationLoader.cs index cf92abda..1c177d20 100644 --- a/Ryujinx.HLE/HOS/ApplicationLoader.cs +++ b/Ryujinx.HLE/HOS/ApplicationLoader.cs @@ -84,7 +84,10 @@ namespace Ryujinx.HLE.HOS MetaLoader metaData = ReadNpdm(codeFs); - _device.Configuration.VirtualFileSystem.ModLoader.CollectMods(new[] { TitleId }, _device.Configuration.VirtualFileSystem.ModLoader.GetModsBasePath()); + _device.Configuration.VirtualFileSystem.ModLoader.CollectMods( + new[] { TitleId }, + _device.Configuration.VirtualFileSystem.ModLoader.GetModsBasePath(), + _device.Configuration.VirtualFileSystem.ModLoader.GetSdModsBasePath()); if (TitleId != 0) { @@ -388,7 +391,10 @@ namespace Ryujinx.HLE.HOS MetaLoader metaData = ReadNpdm(codeFs); - _device.Configuration.VirtualFileSystem.ModLoader.CollectMods(_device.Configuration.ContentManager.GetAocTitleIds().Prepend(TitleId), _device.Configuration.VirtualFileSystem.ModLoader.GetModsBasePath()); + _device.Configuration.VirtualFileSystem.ModLoader.CollectMods( + _device.Configuration.ContentManager.GetAocTitleIds().Prepend(TitleId), + _device.Configuration.VirtualFileSystem.ModLoader.GetModsBasePath(), + _device.Configuration.VirtualFileSystem.ModLoader.GetSdModsBasePath()); if (controlNca != null) { diff --git a/Ryujinx.HLE/HOS/ModLoader.cs b/Ryujinx.HLE/HOS/ModLoader.cs index 27c0022f..4f379033 100644 --- a/Ryujinx.HLE/HOS/ModLoader.cs +++ b/Ryujinx.HLE/HOS/ModLoader.cs @@ -136,7 +136,8 @@ namespace Ryujinx.HLE.HOS private static bool StrEquals(string s1, string s2) => string.Equals(s1, s2, StringComparison.OrdinalIgnoreCase); - public string GetModsBasePath() => EnsureBaseDirStructure(AppDataManager.GetModsPath()); + public string GetModsBasePath() => EnsureBaseDirStructure(AppDataManager.GetModsPath()); + public string GetSdModsBasePath() => EnsureBaseDirStructure(AppDataManager.GetSdModsPath()); private string EnsureBaseDirStructure(string modsBasePath) { |
