summaryrefslogtreecommitdiff
path: root/src/frontend_common
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
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 'src/frontend_common')
-rw-r--r--src/frontend_common/config.cpp26
-rw-r--r--src/frontend_common/config.h6
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() {
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
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:
76 void ReadCoreValues(); 76 void ReadCoreValues();
77 void ReadDataStorageValues(); 77 void ReadDataStorageValues();
78 void ReadDebuggingValues(); 78 void ReadDebuggingValues();
79#ifdef __unix__
80 void ReadLinuxValues();
81#endif
79 void ReadServiceValues(); 82 void ReadServiceValues();
80 void ReadDisabledAddOnValues(); 83 void ReadDisabledAddOnValues();
81 void ReadMiscellaneousValues(); 84 void ReadMiscellaneousValues();
@@ -107,6 +110,9 @@ protected:
107 void SaveCoreValues(); 110 void SaveCoreValues();
108 void SaveDataStorageValues(); 111 void SaveDataStorageValues();
109 void SaveDebuggingValues(); 112 void SaveDebuggingValues();
113#ifdef __unix__
114 void SaveLinuxValues();
115#endif
110 void SaveNetworkValues(); 116 void SaveNetworkValues();
111 void SaveDisabledAddOnValues(); 117 void SaveDisabledAddOnValues();
112 void SaveMiscellaneousValues(); 118 void SaveMiscellaneousValues();