diff --git a/Manager/MainWindow.xaml b/Manager/MainWindow.xaml
index 27623f4f4..187f9ec46 100644
--- a/Manager/MainWindow.xaml
+++ b/Manager/MainWindow.xaml
@@ -562,6 +562,10 @@
IsEnabled="{Binding Source={StaticResource Locator}, Path=Settings.IsHlaeCustomLocationEnabled}"
Command="{Binding Source={StaticResource Locator}, Path=Settings.ResetCustomHlaeLocationCommand}" />
+
+
diff --git a/Manager/ViewModel/SettingsViewModel.cs b/Manager/ViewModel/SettingsViewModel.cs
index 9307620df..1dff79a2b 100644
--- a/Manager/ViewModel/SettingsViewModel.cs
+++ b/Manager/ViewModel/SettingsViewModel.cs
@@ -66,6 +66,17 @@ public bool IsHlaeCustomLocationEnabled
set { Set(() => IsHlaeCustomLocationEnabled, ref _isHlaeCustomLocationEnabled, value); }
}
+ private string _hlaeParameters = ServicesSettings.Default.HlaeParameters;
+ public string HlaeParameters
+ {
+ get { return _hlaeParameters; }
+ set
+ {
+ ServicesSettings.Default.HlaeParameters = value;
+ Set(() => HlaeParameters, ref _hlaeParameters, value);
+ }
+ }
+
private bool _isFfmpegCustomLocationEnabled = ServicesSettings.Default.IsFfmpegCustomLocationEnabled;
public bool IsFfmpegCustomLocationEnabled
{
diff --git a/Services/Concrete/GameLauncher.cs b/Services/Concrete/GameLauncher.cs
index 00a6427f1..80dd20b5c 100644
--- a/Services/Concrete/GameLauncher.cs
+++ b/Services/Concrete/GameLauncher.cs
@@ -87,6 +87,11 @@ public async Task StartGame()
argList.Add($"-mmcfg \"{_config.HlaeConfigParentFolderPath}\"");
}
+ if (!string.IsNullOrWhiteSpace(Properties.Settings.Default.HlaeParameters))
+ {
+ argList.Add(Properties.Settings.Default.HlaeParameters);
+ }
+
string args = string.Join(ARGUMENT_SEPARATOR, argList.ToArray());
ProcessStartInfo psi = new ProcessStartInfo
{
diff --git a/Services/Properties/Settings.Designer.cs b/Services/Properties/Settings.Designer.cs
index f7a1c6076..13fa24252 100644
--- a/Services/Properties/Settings.Designer.cs
+++ b/Services/Properties/Settings.Designer.cs
@@ -70,5 +70,17 @@ public string FfmpegExecutableLocation {
this["FfmpegExecutableLocation"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string HlaeParameters {
+ get {
+ return ((string)(this["HlaeParameters"]));
+ }
+ set {
+ this["HlaeParameters"] = value;
+ }
+ }
}
}
diff --git a/Services/Properties/Settings.settings b/Services/Properties/Settings.settings
index 9ef382c12..70ba36319 100644
--- a/Services/Properties/Settings.settings
+++ b/Services/Properties/Settings.settings
@@ -14,5 +14,8 @@
+
+
+
\ No newline at end of file
diff --git a/Services/app.config b/Services/app.config
index 3677a02d1..cbddae495 100644
--- a/Services/app.config
+++ b/Services/app.config
@@ -47,6 +47,9 @@
+
+
+