GUI: Only show the quit dialog in absence of an engine GUI override

This commit is contained in:
AndywinXp 2023-01-19 12:31:01 +01:00 committed by Eugene Sandulenko
parent 90c0c805d4
commit aae1cac682

View File

@ -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;