From aae1cac682e783cea72b6c362ea17b5da5bb0da9 Mon Sep 17 00:00:00 2001 From: AndywinXp Date: Thu, 19 Jan 2023 12:31:01 +0100 Subject: [PATCH] GUI: Only show the quit dialog in absence of an engine GUI override --- backends/events/default/default-events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/events/default/default-events.cpp b/backends/events/default/default-events.cpp index f23a54bb53e..4a02bb270c2 100644 --- a/backends/events/default/default-events.cpp +++ b/backends/events/default/default-events.cpp @@ -180,7 +180,7 @@ bool DefaultEventManager::pollEvent(Common::Event &event) { break; case Common::EVENT_RETURN_TO_LAUNCHER: - if (ConfMan.getBool("confirm_exit")) { + if (g_engine && !g_engine->hasFeature(Engine::kSupportsQuitDialogOverride) && ConfMan.getBool("confirm_exit")) { if (_confirmExitDialogActive) { forwardEvent = false; break; @@ -204,7 +204,7 @@ bool DefaultEventManager::pollEvent(Common::Event &event) { break; case Common::EVENT_QUIT: - if (g_engine && ConfMan.getBool("confirm_exit")) { + if (g_engine && !g_engine->hasFeature(Engine::kSupportsQuitDialogOverride) && ConfMan.getBool("confirm_exit")) { if (_confirmExitDialogActive) { forwardEvent = false; break;