From 48b67fc4a01e5add97f28e317a8af2e7d3e429b6 Mon Sep 17 00:00:00 2001 From: flodavid Date: Thu, 12 Oct 2023 00:17:06 +0200 Subject: 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 --- src/yuzu/main.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/yuzu/main.h') 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, -- cgit v1.2.3