mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-23 19:57:44 +02:00
Fix loading multiple mods with partially matching names
See merge request ryubing/ryujinx!21
This commit is contained in:
parent
244c0505d9
commit
3a79b442b0
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ namespace Ryujinx.HLE.HOS
|
||||||
|
|
||||||
if (StrEquals(RomfsDir, modDir.Name))
|
if (StrEquals(RomfsDir, modDir.Name))
|
||||||
{
|
{
|
||||||
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Contains(x.Path));
|
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Equals(x.Path));
|
||||||
bool enabled = modData?.Enabled ?? true;
|
bool 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));
|
||||||
|
@ -179,7 +179,7 @@ namespace Ryujinx.HLE.HOS
|
||||||
}
|
}
|
||||||
else if (StrEquals(ExefsDir, modDir.Name))
|
else if (StrEquals(ExefsDir, modDir.Name))
|
||||||
{
|
{
|
||||||
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Contains(x.Path));
|
Mod modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Equals(x.Path));
|
||||||
bool enabled = modData?.Enabled ?? true;
|
bool 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));
|
||||||
|
|
Loading…
Add table
Reference in a new issue