diff options
author | flodavid <fl.david.53@gmail.com> | 2024-01-02 19:58:25 +0100 |
---|---|---|
committer | flodavid <fl.david.53@gmail.com> | 2024-01-02 21:21:40 +0100 |
commit | 68fe1e34767538f0ccedec047773d5da58eaa2ea (patch) | |
tree | abea7fbe56a67138987f63baf3e8547139c563fc | |
parent | Merge pull request #12554 from german77/directconnect (diff) | |
download | yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.tar yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.tar.gz yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.tar.bz2 yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.tar.lz yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.tar.xz yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.tar.zst yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.zip |
-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 51576b4ee..93365394e 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp @@ -280,6 +280,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)); @@ -386,6 +396,9 @@ void Config::ReadValues() { ReadControlValues(); ReadCoreValues(); ReadCpuValues(); +#ifdef __unix__ + ReadLinuxValues(); +#endif ReadRendererValues(); ReadAudioValues(); ReadSystemValues(); @@ -478,6 +491,9 @@ void Config::SaveValues() { SaveControlValues(); SaveCoreValues(); SaveCpuValues(); +#ifdef __unix__ + SaveLinuxValues(); +#endif SaveRendererValues(); SaveAudioValues(); SaveSystemValues(); @@ -552,6 +568,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 0c4d505b8..a6c80ddc1 100644 --- a/src/frontend_common/config.h +++ b/src/frontend_common/config.h @@ -77,6 +77,9 @@ protected: void ReadCoreValues(); void ReadDataStorageValues(); void ReadDebuggingValues(); +#ifdef __unix__ + void ReadLinuxValues(); +#endif void ReadServiceValues(); void ReadDisabledAddOnValues(); void ReadMiscellaneousValues(); @@ -108,6 +111,9 @@ protected: void SaveCoreValues(); void SaveDataStorageValues(); void SaveDebuggingValues(); +#ifdef __unix__ + void SaveLinuxValues(); +#endif void SaveNetworkValues(); void SaveDisabledAddOnValues(); void SaveMiscellaneousValues(); |