mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-12 14:12:03 +00:00
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>
This commit is contained in:
parent
b001040c2f
commit
a03ab0c4a0
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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'");
|
||||
|
||||
|
|
Loading…
Reference in a new issue