diff options
| author | 2024-01-02 19:58:25 +0100 | |
|---|---|---|
| committer | 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.gz yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.tar.xz yuzu-68fe1e34767538f0ccedec047773d5da58eaa2ea.zip | |
fix linux config values not saved
| -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() { | |||
| 280 | EndGroup(); | 280 | EndGroup(); |
| 281 | } | 281 | } |
| 282 | 282 | ||
| 283 | #ifdef __unix__ | ||
| 284 | void Config::ReadLinuxValues() { | ||
| 285 | BeginGroup(Settings::TranslateCategory(Settings::Category::Linux)); | ||
| 286 | |||
| 287 | ReadCategory(Settings::Category::Linux); | ||
| 288 | |||
| 289 | EndGroup(); | ||
| 290 | } | ||
| 291 | #endif | ||
| 292 | |||
| 283 | void Config::ReadServiceValues() { | 293 | void Config::ReadServiceValues() { |
| 284 | BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); | 294 | BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); |
| 285 | 295 | ||
| @@ -386,6 +396,9 @@ void Config::ReadValues() { | |||
| 386 | ReadControlValues(); | 396 | ReadControlValues(); |
| 387 | ReadCoreValues(); | 397 | ReadCoreValues(); |
| 388 | ReadCpuValues(); | 398 | ReadCpuValues(); |
| 399 | #ifdef __unix__ | ||
| 400 | ReadLinuxValues(); | ||
| 401 | #endif | ||
| 389 | ReadRendererValues(); | 402 | ReadRendererValues(); |
| 390 | ReadAudioValues(); | 403 | ReadAudioValues(); |
| 391 | ReadSystemValues(); | 404 | ReadSystemValues(); |
| @@ -478,6 +491,9 @@ void Config::SaveValues() { | |||
| 478 | SaveControlValues(); | 491 | SaveControlValues(); |
| 479 | SaveCoreValues(); | 492 | SaveCoreValues(); |
| 480 | SaveCpuValues(); | 493 | SaveCpuValues(); |
| 494 | #ifdef __unix__ | ||
| 495 | SaveLinuxValues(); | ||
| 496 | #endif | ||
| 481 | SaveRendererValues(); | 497 | SaveRendererValues(); |
| 482 | SaveAudioValues(); | 498 | SaveAudioValues(); |
| 483 | SaveSystemValues(); | 499 | SaveSystemValues(); |
| @@ -552,6 +568,16 @@ void Config::SaveDebuggingValues() { | |||
| 552 | EndGroup(); | 568 | EndGroup(); |
| 553 | } | 569 | } |
| 554 | 570 | ||
| 571 | #ifdef __unix__ | ||
| 572 | void Config::SaveLinuxValues() { | ||
| 573 | BeginGroup(Settings::TranslateCategory(Settings::Category::Linux)); | ||
| 574 | |||
| 575 | WriteCategory(Settings::Category::Linux); | ||
| 576 | |||
| 577 | EndGroup(); | ||
| 578 | } | ||
| 579 | #endif | ||
| 580 | |||
| 555 | void Config::SaveNetworkValues() { | 581 | void Config::SaveNetworkValues() { |
| 556 | BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); | 582 | BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); |
| 557 | 583 | ||
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: | |||
| 77 | void ReadCoreValues(); | 77 | void ReadCoreValues(); |
| 78 | void ReadDataStorageValues(); | 78 | void ReadDataStorageValues(); |
| 79 | void ReadDebuggingValues(); | 79 | void ReadDebuggingValues(); |
| 80 | #ifdef __unix__ | ||
| 81 | void ReadLinuxValues(); | ||
| 82 | #endif | ||
| 80 | void ReadServiceValues(); | 83 | void ReadServiceValues(); |
| 81 | void ReadDisabledAddOnValues(); | 84 | void ReadDisabledAddOnValues(); |
| 82 | void ReadMiscellaneousValues(); | 85 | void ReadMiscellaneousValues(); |
| @@ -108,6 +111,9 @@ protected: | |||
| 108 | void SaveCoreValues(); | 111 | void SaveCoreValues(); |
| 109 | void SaveDataStorageValues(); | 112 | void SaveDataStorageValues(); |
| 110 | void SaveDebuggingValues(); | 113 | void SaveDebuggingValues(); |
| 114 | #ifdef __unix__ | ||
| 115 | void SaveLinuxValues(); | ||
| 116 | #endif | ||
| 111 | void SaveNetworkValues(); | 117 | void SaveNetworkValues(); |
| 112 | void SaveDisabledAddOnValues(); | 118 | void SaveDisabledAddOnValues(); |
| 113 | void SaveMiscellaneousValues(); | 119 | void SaveMiscellaneousValues(); |