diff --git a/src/LegendaryGameController.cs b/src/LegendaryGameController.cs index 8368d21..063c58b 100644 --- a/src/LegendaryGameController.cs +++ b/src/LegendaryGameController.cs @@ -200,15 +200,15 @@ public override async void Play(PlayActionArgs args) playArgs.Add("--skip-version-check"); } } - if (gameSettings?.StartupArguments != null) + if (gameSettings.StartupArguments?.Any() == true) { playArgs.AddRange(gameSettings.StartupArguments); } - if (gameSettings?.LanguageCode != null) + if (!gameSettings.LanguageCode.IsNullOrEmpty()) { playArgs.AddRange(new[] { "--language", gameSettings.LanguageCode } ); } - if (gameSettings?.OverrideExe != null) + if (!gameSettings.OverrideExe.IsNullOrEmpty()) { playArgs.AddRange(new[] { "--override-exe", gameSettings?.OverrideExe }); }