diff options
author | Florian <fl.david.53@gmail.com> | 2023-08-26 21:23:02 +0200 |
---|---|---|
committer | flodavid <fl.david.53@gmail.com> | 2023-10-12 01:51:53 +0200 |
commit | 6c246f2ac5ce2ede656bf0d2def3b32f87e620b3 (patch) | |
tree | d6f9fd1a9965f95cd3f22102b79b02f09340ac04 /src/yuzu/uisettings.h | |
parent | yuzu: Enable to use controller to close a game (diff) | |
download | yuzu-6c246f2ac5ce2ede656bf0d2def3b32f87e620b3.tar yuzu-6c246f2ac5ce2ede656bf0d2def3b32f87e620b3.tar.gz yuzu-6c246f2ac5ce2ede656bf0d2def3b32f87e620b3.tar.bz2 yuzu-6c246f2ac5ce2ede656bf0d2def3b32f87e620b3.tar.lz yuzu-6c246f2ac5ce2ede656bf0d2def3b32f87e620b3.tar.xz yuzu-6c246f2ac5ce2ede656bf0d2def3b32f87e620b3.tar.zst yuzu-6c246f2ac5ce2ede656bf0d2def3b32f87e620b3.zip |
Diffstat (limited to 'src/yuzu/uisettings.h')
-rw-r--r-- | src/yuzu/uisettings.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/yuzu/uisettings.h b/src/yuzu/uisettings.h index 1216c4efa..b62ff620c 100644 --- a/src/yuzu/uisettings.h +++ b/src/yuzu/uisettings.h @@ -16,7 +16,9 @@ #include "common/settings_enums.h" using Settings::Category; +using Settings::ConfirmStop; using Settings::Setting; +using Settings::SwitchableSetting; #ifndef CANNOT_EXPLICITLY_INSTANTIATE namespace Settings { @@ -56,8 +58,6 @@ enum class Theme { MidnightBlueColorful, }; -enum AskStopIndex : int { Always, Game, Never }; - using Themes = std::array<std::pair<const char*, const char*>, 6>; extern const Themes themes; @@ -96,9 +96,15 @@ struct Values { Setting<bool> confirm_before_closing{ linkage, true, "confirmClose", Category::UiGeneral, Settings::Specialization::Default, true, true}; - Setting<bool> confirm_before_stopping{ - linkage, true, "confirmStop", Category::UiGeneral, Settings::Specialization::Default, - true, true}; + + SwitchableSetting<ConfirmStop> confirm_before_stopping{linkage, + ConfirmStop::Ask_Always, + "confirmStop", + Category::UiGeneral, + Settings::Specialization::Default, + true, + true}; + Setting<bool> first_start{linkage, true, "firstStart", Category::Ui}; Setting<bool> pause_when_in_background{linkage, false, |