repeating
This commit is contained in:
parent
c2905744b0
commit
d2f22e9768
1 changed files with 2 additions and 12 deletions
|
@ -181,18 +181,8 @@ namespace Ryujinx.HLE.HOS
|
||||||
}
|
}
|
||||||
else if (StrEquals(ExefsDir, modDir.Name))
|
else if (StrEquals(ExefsDir, modDir.Name))
|
||||||
{
|
{
|
||||||
bool enabled;
|
var modData = modMetadata.Mods.Find(x => modDir.FullName.Contains(x.Path));
|
||||||
|
var enabled = modData?.Enabled ?? true;
|
||||||
try
|
|
||||||
{
|
|
||||||
var modData = modMetadata.Mods.Find(x => modDir.FullName.Contains(x.Path));
|
|
||||||
enabled = modData.Enabled;
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
// Mod is not in the list yet. New mods should be enabled by default.
|
|
||||||
enabled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
mods.ExefsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
mods.ExefsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
||||||
types.Append('E');
|
types.Append('E');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue