diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-28 21:02:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 21:02:34 +0100 |
commit | 6a2532fe17769e78d619435ce276008c61345671 (patch) | |
tree | dc3f6955769d5233396a4ef8e9c1114bc0aad422 /src/frontend_common | |
parent | Merge pull request #12821 from merryhime/atomic_ops (diff) | |
parent | yuzu: Add per-game linux gamemode configuration (diff) | |
download | yuzu-6a2532fe17769e78d619435ce276008c61345671.tar yuzu-6a2532fe17769e78d619435ce276008c61345671.tar.gz yuzu-6a2532fe17769e78d619435ce276008c61345671.tar.bz2 yuzu-6a2532fe17769e78d619435ce276008c61345671.tar.lz yuzu-6a2532fe17769e78d619435ce276008c61345671.tar.xz yuzu-6a2532fe17769e78d619435ce276008c61345671.tar.zst yuzu-6a2532fe17769e78d619435ce276008c61345671.zip |
Diffstat (limited to 'src/frontend_common')
-rw-r--r-- | src/frontend_common/config.cpp | 26 | ||||
-rw-r--r-- | src/frontend_common/config.h | 6 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 46277e288..905f35118 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)); diff --git a/src/frontend_common/config.h b/src/frontend_common/config.h index 4798d6432..4ecb97044 100644 --- a/src/frontend_common/config.h +++ b/src/frontend_common/config.h @@ -76,6 +76,9 @@ protected: void ReadCoreValues(); void ReadDataStorageValues(); void ReadDebuggingValues(); +#ifdef __unix__ + void ReadLinuxValues(); +#endif void ReadServiceValues(); void ReadDisabledAddOnValues(); void ReadMiscellaneousValues(); @@ -107,6 +110,9 @@ protected: void SaveCoreValues(); void SaveDataStorageValues(); void SaveDebuggingValues(); +#ifdef __unix__ + void SaveLinuxValues(); +#endif void SaveNetworkValues(); void SaveDisabledAddOnValues(); void SaveMiscellaneousValues(); |