From 342f51b1963c24309edfbd27c8c6e0cd5fbdb8b1 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 16 Apr 2021 14:42:34 +0200 Subject: [PATCH] AD: Fix compilation --- engines/advancedDetector.cpp | 2 +- engines/engine.cpp | 4 ++++ engines/engine.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index 88c763756f5..ea439475e4f 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -380,7 +380,7 @@ Common::Error AdvancedMetaEngineDetection::createInstance(OSystem *syst, Engine if (((gameDescriptor.gameSupportLevel == kUnstableGame || (gameDescriptor.gameSupportLevel == kTestingGame && showTestingWarning))) - && !Engine::warnUserAboutUnsupportedGame("")) + && !Engine::warnUserAboutUnsupportedGame()) return Common::kUserCanceled; if (gameDescriptor.gameSupportLevel == kWarningGame diff --git a/engines/engine.cpp b/engines/engine.cpp index 39e7b48fe05..347fbaba7a2 100644 --- a/engines/engine.cpp +++ b/engines/engine.cpp @@ -644,6 +644,10 @@ void Engine::openMainMenuDialog() { syncSoundSettings(); } +bool Engine::warnUserAboutUnsupportedGame() { + return warnUserAboutUnsupportedGame(""); +} + bool Engine::warnUserAboutUnsupportedGame(Common::String msg) { if (ConfMan.getBool("enable_unsupported_game_warning")) { GUI::MessageDialog alert(!msg.empty() ? _("WARNING: ") + Common::U32String(msg) + _(" Shall we still run the game?") : diff --git a/engines/engine.h b/engines/engine.h index 2bd3588c154..d3efb48b7ca 100644 --- a/engines/engine.h +++ b/engines/engine.h @@ -546,6 +546,7 @@ public: * * @return True if the user chooses to start anyway, false otherwise. */ + static bool warnUserAboutUnsupportedGame(); static bool warnUserAboutUnsupportedGame(Common::String msg); /**