diff options
author | flodavid <fl.david.53@gmail.com> | 2023-10-12 00:17:06 +0200 |
---|---|---|
committer | flodavid <fl.david.53@gmail.com> | 2023-10-12 01:53:54 +0200 |
commit | 48b67fc4a01e5add97f28e317a8af2e7d3e429b6 (patch) | |
tree | 99578c9bf4ccf38b62485d27ea88b128e3da3c2c /src/yuzu/main.h | |
parent | 6c246f2ac5ce2ede656bf0d2def3b32f87e620b3 (diff) |
yuzu: Enable to use controller to restart a game
- Show the right confirm dialog if wanted
- Create generic method to ask close confirmation
- Add "R + Plus + Minus" default shortcut to Restart emulation
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r-- | src/yuzu/main.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 711c53a32..178eef294 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -426,6 +426,10 @@ private: bool CheckSystemArchiveDecryption(); bool CheckFirmwarePresence(); void ConfigureFilesystemProvider(const std::string& filepath); + /** + * Open (or not) the right confirm dialog based on current setting and game exit lock + */ + bool ConfirmShutdownGame(); QString GetTasStateDescription() const; bool CreateShortcut(const std::string& shortcut_path, const std::string& title, |