diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-28 15:02:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-28 15:02:34 -0500 |
| commit | 3f246847f805da147161ac1531d4c6502a349a74 (patch) | |
| tree | dc3f6955769d5233396a4ef8e9c1114bc0aad422 /src/frontend_common/config.cpp | |
| parent | 27125601cdfe4b350eac9d7a9e104327a650360c (diff) | |
| parent | f1021346b0f8e1822b0259891db9dc1e86ac49ac (diff) | |
Merge pull request #12555 from flodavid/fix-gamemode-setting
Save gamemode configuration and add per-game config
Diffstat (limited to 'src/frontend_common/config.cpp')
| -rw-r--r-- | src/frontend_common/config.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 46277e2885..905f351184 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp @@ -298,6 +298,16 @@ void Config::ReadDebuggingValues() { EndGroup(); } +#ifdef __unix__ +void Config::ReadLinuxValues() { + BeginGroup(Settings::TranslateCategory(Settings::Category::Linux)); + + ReadCategory(Settings::Category::Linux); + + EndGroup(); +} +#endif + void Config::ReadServiceValues() { BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); @@ -404,6 +414,9 @@ void Config::ReadValues() { ReadControlValues(); ReadCoreValues(); ReadCpuValues(); +#ifdef __unix__ + ReadLinuxValues(); +#endif ReadRendererValues(); ReadAudioValues(); ReadSystemValues(); @@ -504,6 +517,9 @@ void Config::SaveValues() { SaveControlValues(); SaveCoreValues(); SaveCpuValues(); +#ifdef __unix__ + SaveLinuxValues(); +#endif SaveRendererValues(); SaveAudioValues(); SaveSystemValues(); @@ -578,6 +594,16 @@ void Config::SaveDebuggingValues() { EndGroup(); } +#ifdef __unix__ +void Config::SaveLinuxValues() { + BeginGroup(Settings::TranslateCategory(Settings::Category::Linux)); + + WriteCategory(Settings::Category::Linux); + + EndGroup(); +} +#endif + void Config::SaveNetworkValues() { BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); |
