aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/ApplicationLoader.cs
diff options
context:
space:
mode:
authorSomebody Whoisbored <13044396+shadowninja108@users.noreply.github.com>2021-01-03 04:30:31 -0700
committerGitHub <noreply@github.com>2021-01-03 12:30:31 +0100
commita03ab0c4a0bef3c168874dc2105c43c9051e0807 (patch)
tree337d4a2dad07d6b011ea3c368167930d2273d515 /Ryujinx.HLE/HOS/ApplicationLoader.cs
parentb001040c2f005da21f91713ba1145083a01d0b01 (diff)
Fix exefs mod loading with unpacked games (#1857)
* Add the ability to layeredfs individual exefs with mod loader * Address code style issues * Further adjustments to the mod loading * Update Ryujinx.HLE/HOS/ModLoader.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Apply suggestions from code review Co-authored-by: Ac_K <Acoustik666@gmail.com> * Address issue with checking for NSO existence (and code style fixes) Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'Ryujinx.HLE/HOS/ApplicationLoader.cs')
-rw-r--r--Ryujinx.HLE/HOS/ApplicationLoader.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/ApplicationLoader.cs b/Ryujinx.HLE/HOS/ApplicationLoader.cs
index 2c4708d7..cc9b25fb 100644
--- a/Ryujinx.HLE/HOS/ApplicationLoader.cs
+++ b/Ryujinx.HLE/HOS/ApplicationLoader.cs
@@ -481,11 +481,11 @@ namespace Ryujinx.HLE.HOS
NsoExecutable[] nsos = new NsoExecutable[ExeFsPrefixes.Length];
- for(int i = 0; i < nsos.Length; i++)
+ for (int i = 0; i < nsos.Length; i++)
{
string name = ExeFsPrefixes[i];
- if (!codeFs.FileExists(name))
+ if (!codeFs.FileExists($"/{name}"))
{
continue; // file doesn't exist, skip
}