mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-24 18:23:03 -03:00
changed variable name from CommandLineArgMods to OverrideMods
This commit is contained in:
parent
35f2382c08
commit
8827bce223
2 changed files with 6 additions and 6 deletions
|
@ -32,7 +32,7 @@ namespace Ryujinx.Common.Configuration
|
|||
public static string KeysDirPathUser { get; }
|
||||
|
||||
public static string LogsDirPath { get; private set; }
|
||||
public static string[] CommandLineArgMods { get; private set; }
|
||||
public static string[] OverrideMods { get; private set; }
|
||||
|
||||
public const string DefaultNandDir = "bis";
|
||||
public const string DefaultSdcardDir = "sdcard";
|
||||
|
@ -50,7 +50,7 @@ namespace Ryujinx.Common.Configuration
|
|||
|
||||
public static void Initialize(string baseDirPath, string[] commandLineArgMods)
|
||||
{
|
||||
CommandLineArgMods = commandLineArgMods;
|
||||
OverrideMods = commandLineArgMods;
|
||||
string appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
|
||||
|
||||
if (appDataPath.Length == 0)
|
||||
|
|
|
@ -171,13 +171,13 @@ namespace Ryujinx.HLE.HOS
|
|||
var modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Contains(x.Path));
|
||||
|
||||
bool enabled;
|
||||
if (AppDataManager.CommandLineArgMods.Length == 0)
|
||||
if (AppDataManager.OverrideMods.Length == 0)
|
||||
{
|
||||
enabled = modData?.Enabled ?? true;
|
||||
}
|
||||
else
|
||||
{
|
||||
enabled = AppDataManager.CommandLineArgMods.Contains(modData.Name);
|
||||
enabled = AppDataManager.OverrideMods.Contains(modData.Name);
|
||||
}
|
||||
|
||||
mods.RomfsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
||||
|
@ -188,13 +188,13 @@ namespace Ryujinx.HLE.HOS
|
|||
var modData = modMetadata.Mods.FirstOrDefault(x => modDir.FullName.Contains(x.Path));
|
||||
|
||||
bool enabled;
|
||||
if (AppDataManager.CommandLineArgMods.Length == 0)
|
||||
if (AppDataManager.OverrideMods.Length == 0)
|
||||
{
|
||||
enabled = modData?.Enabled ?? true;
|
||||
}
|
||||
else
|
||||
{
|
||||
enabled = AppDataManager.CommandLineArgMods.Contains(modData.Name);
|
||||
enabled = AppDataManager.OverrideMods.Contains(modData.Name);
|
||||
}
|
||||
|
||||
mods.ExefsDirs.Add(mod = new Mod<DirectoryInfo>(dir.Name, modDir, enabled));
|
||||
|
|
Loading…
Add table
Reference in a new issue