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 } diff --git a/Ryujinx.HLE/HOS/ModLoader.cs b/Ryujinx.HLE/HOS/ModLoader.cs index d2f80ebd..7aba0fc7 100644 --- a/Ryujinx.HLE/HOS/ModLoader.cs +++ b/Ryujinx.HLE/HOS/ModLoader.cs @@ -438,9 +438,9 @@ namespace Ryujinx.HLE.HOS } FileInfo npdmFile = new FileInfo(Path.Combine(mod.Path.FullName, "main.npdm")); - if(npdmFile.Exists) + if (npdmFile.Exists) { - if(modLoadResult.Npdm != null) + if (modLoadResult.Npdm != null) { Logger.Warning?.Print(LogClass.ModLoader, "Multiple replacements to 'main.npdm'");