Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ public override void OnGameStopped(OnGameStoppedEventArgs args)
_steamHelper.RemoveBigPictureModeEnvVariable();
}

StopAllSpecialKServices();
if (!settings.Settings.KeepServicesRunning)
{
StopAllSpecialKServices();
}
}

private void StopAllSpecialKServices()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class SpecialKHelperSettings : ObservableObject
public bool StopIfEasyAntiCheat { get => stopIfEasyAntiCheat; set => SetValue(ref stopIfEasyAntiCheat, value); }
private string customSpecialKPath = string.Empty;
public string CustomSpecialKPath { get => customSpecialKPath; set => SetValue(ref customSpecialKPath, value); }
private bool _keepServicesRunning = true;
public bool KeepServicesRunning { get => _keepServicesRunning; set => SetValue(ref _keepServicesRunning, value); }
}

public class SpecialKHelperSettingsViewModel : ObservableObject, ISettings
Expand Down
1 change: 1 addition & 0 deletions source/Generic/SpecialKHelper/Core/Localization/en_US.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Selective Mode: Special K services are started only for games that have the incl
<sys:String x:Key="LOCSpecial_K_Helper_SettingStopIfVac">Stop start of services if game has "Valve Anti-Cheat Enabled" feature</sys:String>
<sys:String x:Key="LOCSpecial_K_Helper_SettingStopIfEac">Stop start of services if it is detected that the game uses EasyAntiCheat</sys:String>
<sys:String x:Key="LOCSpecial_K_Helper_SettingRunOnlyPcGames">Only start Special K services when starting PC games</sys:String>
<sys:String x:Key="LOCSpecial_K_Helper_SettingKeepServicesRunning">Keep services running after game is closed</sys:String>

<sys:String x:Key="LOCSpecial_K_Helper_SettingNewProfileSettingsLabel">Default settings for new profiles created by Special K</sys:String>
<sys:String x:Key="LOCSpecial_K_Helper_SettingNewProfileEnableSteamOverlay">Enable Steam overlay</sys:String>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@

<Separator Margin="0,10,0,0"/>

<CheckBox Margin="0,10,0,0" Content="{DynamicResource LOCSpecial_K_Helper_SettingKeepServicesRunning}"
IsChecked="{Binding Settings.KeepServicesRunning}" />

<CheckBox Margin="0,10,0,0" Content="{DynamicResource LOCSpecial_K_Helper_SettingStopIfVac}"
IsChecked="{Binding Settings.StopExecutionIfVac}" />

Expand Down