From 8827bce2232490597b8bea089db219656b46fd68 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 6 Jan 2025 23:13:21 +0100 Subject: [PATCH] changed variable name from CommandLineArgMods to OverrideMods --- src/Ryujinx.Common/Configuration/AppDataManager.cs | 4 ++-- src/Ryujinx.HLE/HOS/ModLoader.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Ryujinx.Common/Configuration/AppDataManager.cs b/src/Ryujinx.Common/Configuration/AppDataManager.cs index 08ce0c5f8..203fd42fb 100644 --- a/src/Ryujinx.Common/Configuration/AppDataManager.cs +++ b/src/Ryujinx.Common/Configuration/AppDataManager.cs @@ -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) diff --git a/src/Ryujinx.HLE/HOS/ModLoader.cs b/src/Ryujinx.HLE/HOS/ModLoader.cs index ee1c21db3..52081ee18 100644 --- a/src/Ryujinx.HLE/HOS/ModLoader.cs +++ b/src/Ryujinx.HLE/HOS/ModLoader.cs @@ -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(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(dir.Name, modDir, enabled));