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:
Somebody Whoisbored 2021-01-03 04:30:31 -07:00 committed by GitHub
parent b001040c2f
commit a03ab0c4a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -485,7 +485,7 @@ namespace Ryujinx.HLE.HOS
{
string name = ExeFsPrefixes[i];
if (!codeFs.FileExists(name))
if (!codeFs.FileExists($"/{name}"))
{
continue; // file doesn't exist, skip
}