summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-11-22 15:25:12 -0500
committerGravatar Zach Hilman2018-12-05 14:02:02 -0500
commit281b64daf46ca5a27c29a14cf31f1b8b6f985d46 (patch)
tree72656e1fa71315aca8d8835211ae37a8477880cd /src
parentMerge pull request #1859 from heapo/lut_array_codegen (diff)
downloadyuzu-281b64daf46ca5a27c29a14cf31f1b8b6f985d46.tar.gz
yuzu-281b64daf46ca5a27c29a14cf31f1b8b6f985d46.tar.xz
yuzu-281b64daf46ca5a27c29a14cf31f1b8b6f985d46.zip
ui_settings: Add UI setting for input profile index
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/config.cpp2
-rw-r--r--src/yuzu/ui_settings.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index 83ebbd1fe..ef028cca3 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -506,6 +506,7 @@ void Config::ReadValues() {
506 UISettings::values.first_start = qt_config->value("firstStart", true).toBool(); 506 UISettings::values.first_start = qt_config->value("firstStart", true).toBool();
507 UISettings::values.callout_flags = qt_config->value("calloutFlags", 0).toUInt(); 507 UISettings::values.callout_flags = qt_config->value("calloutFlags", 0).toUInt();
508 UISettings::values.show_console = qt_config->value("showConsole", false).toBool(); 508 UISettings::values.show_console = qt_config->value("showConsole", false).toBool();
509 UISettings::values.profile_index = qt_config->value("profileIndex", 0).toUInt();
509 510
510 qt_config->endGroup(); 511 qt_config->endGroup();
511} 512}
@@ -695,6 +696,7 @@ void Config::SaveValues() {
695 qt_config->setValue("firstStart", UISettings::values.first_start); 696 qt_config->setValue("firstStart", UISettings::values.first_start);
696 qt_config->setValue("calloutFlags", UISettings::values.callout_flags); 697 qt_config->setValue("calloutFlags", UISettings::values.callout_flags);
697 qt_config->setValue("showConsole", UISettings::values.show_console); 698 qt_config->setValue("showConsole", UISettings::values.show_console);
699 qt_config->setValue("profileIndex", UISettings::values.profile_index);
698 qt_config->endGroup(); 700 qt_config->endGroup();
699} 701}
700 702
diff --git a/src/yuzu/ui_settings.h b/src/yuzu/ui_settings.h
index e80aebc0a..035192aeb 100644
--- a/src/yuzu/ui_settings.h
+++ b/src/yuzu/ui_settings.h
@@ -58,6 +58,9 @@ struct Values {
58 // logging 58 // logging
59 bool show_console; 59 bool show_console;
60 60
61 // Controllers
62 uint32_t profile_index;
63
61 // Game List 64 // Game List
62 bool show_unknown; 65 bool show_unknown;
63 bool show_add_ons; 66 bool show_add_ons;