mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-20 01:21:15 +01:00
Fix loading multiple mods with partially matching names
* Fix all mods always active
This commit is contained in:
1 parent
d46a6bfed5
commit
df322e6d57
1 file changed
+2
-2
@@ -175,7 +175,7 @@ namespace Ryujinx.HLE.HOS
|
|||||||
|
|
||||||
if (StrEquals(RomfsDir, modDir.Name))
|
if (StrEquals(RomfsDir, modDir.Name))
|
||||||
{
|
{
|
||||||
var modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Contains(x.Path));
|
var modData = modMetadata.Mods.FirstOrDefault(x => modDir.Parent.FullName.Equals(x.Path));
|
||||||
var enabled = modData?.Enabled ?? true;
|
var enabled = modData?.Enabled ?? true;
|
||||||
|
|
||||||
mods.RomfsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
mods.RomfsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
||||||
@@ -183,7 +183,7 @@ namespace Ryujinx.HLE.HOS
|
|||||||
}
|
}
|
||||||
else if (StrEquals(ExefsDir, modDir.Name))
|
else if (StrEquals(ExefsDir, modDir.Name))
|
||||||
{
|
{
|
||||||
var modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Contains(x.Path));
|
var modData = modMetadata.Mods.FirstOrDefault(x => modDir.Parent.FullName.Equals(x.Path));
|
||||||
var enabled = modData?.Enabled ?? true;
|
var enabled = modData?.Enabled ?? true;
|
||||||
|
|
||||||
mods.ExefsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
mods.ExefsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
||||||
|
|||||||
Reference in new issue
Block a user