summaryrefslogtreecommitdiff
path: root/src/frontend_common/config.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2024-01-28 15:02:34 -0500
committerGravatar GitHub2024-01-28 15:02:34 -0500
commit6a2532fe17769e78d619435ce276008c61345671 (patch)
treedc3f6955769d5233396a4ef8e9c1114bc0aad422 /src/frontend_common/config.cpp
parentMerge pull request #12821 from merryhime/atomic_ops (diff)
parentyuzu: Add per-game linux gamemode configuration (diff)
downloadyuzu-6a2532fe17769e78d619435ce276008c61345671.tar.gz
yuzu-6a2532fe17769e78d619435ce276008c61345671.tar.xz
yuzu-6a2532fe17769e78d619435ce276008c61345671.zip
Merge pull request #12555 from flodavid/fix-gamemode-setting
Save gamemode configuration and add per-game config
Diffstat (limited to '')
-rw-r--r--src/frontend_common/config.cpp26
1 files changed, 26 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() {
298 EndGroup(); 298 EndGroup();
299} 299}
300 300
301#ifdef __unix__
302void Config::ReadLinuxValues() {
303 BeginGroup(Settings::TranslateCategory(Settings::Category::Linux));
304
305 ReadCategory(Settings::Category::Linux);
306
307 EndGroup();
308}
309#endif
310
301void Config::ReadServiceValues() { 311void Config::ReadServiceValues() {
302 BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); 312 BeginGroup(Settings::TranslateCategory(Settings::Category::Services));
303 313
@@ -404,6 +414,9 @@ void Config::ReadValues() {
404 ReadControlValues(); 414 ReadControlValues();
405 ReadCoreValues(); 415 ReadCoreValues();
406 ReadCpuValues(); 416 ReadCpuValues();
417#ifdef __unix__
418 ReadLinuxValues();
419#endif
407 ReadRendererValues(); 420 ReadRendererValues();
408 ReadAudioValues(); 421 ReadAudioValues();
409 ReadSystemValues(); 422 ReadSystemValues();
@@ -504,6 +517,9 @@ void Config::SaveValues() {
504 SaveControlValues(); 517 SaveControlValues();
505 SaveCoreValues(); 518 SaveCoreValues();
506 SaveCpuValues(); 519 SaveCpuValues();
520#ifdef __unix__
521 SaveLinuxValues();
522#endif
507 SaveRendererValues(); 523 SaveRendererValues();
508 SaveAudioValues(); 524 SaveAudioValues();
509 SaveSystemValues(); 525 SaveSystemValues();
@@ -578,6 +594,16 @@ void Config::SaveDebuggingValues() {
578 EndGroup(); 594 EndGroup();
579} 595}
580 596
597#ifdef __unix__
598void Config::SaveLinuxValues() {
599 BeginGroup(Settings::TranslateCategory(Settings::Category::Linux));
600
601 WriteCategory(Settings::Category::Linux);
602
603 EndGroup();
604}
605#endif
606
581void Config::SaveNetworkValues() { 607void Config::SaveNetworkValues() {
582 BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); 608 BeginGroup(Settings::TranslateCategory(Settings::Category::Services));
583 609