mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-27 06:27:56 -05:00
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
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user