diff options
| author | flodavid <fl.david.53@gmail.com> | 2023-07-25 22:31:39 +0200 |
|---|---|---|
| committer | flodavid <fl.david.53@gmail.com> | 2023-10-12 01:51:52 +0200 |
| commit | a34565727b6eba66cf20d32f3ec2ad073f29f9e1 (patch) | |
| tree | 9263279b90c2241c2f28d54051f95c05e3ec1f24 /src/yuzu/uisettings.h | |
| parent | da6824d9fd35ab19e4a9c51d0139add9fe127c13 (diff) | |
yuzu: Enable to use controller to close a game
- Add General setting to choose if a confirm dialog is shown when stopping
- Show the right confirm dialog if wanted
- Reuse dialog window that ask to close the game
- Add "L + Plus + Minus" default shortcut to Stop emulation
- Create generic question dialog based on TAS dialog
- It allows controller interaction on most dialogs
Diffstat (limited to 'src/yuzu/uisettings.h')
| -rw-r--r-- | src/yuzu/uisettings.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/yuzu/uisettings.h b/src/yuzu/uisettings.h index 975008159..1216c4efa 100644 --- a/src/yuzu/uisettings.h +++ b/src/yuzu/uisettings.h @@ -56,6 +56,8 @@ 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; @@ -94,6 +96,9 @@ 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}; Setting<bool> first_start{linkage, true, "firstStart", Category::Ui}; Setting<bool> pause_when_in_background{linkage, false, |
