AD: Fix compilation

This commit is contained in:
Eugene Sandulenko 2021-04-16 14:42:34 +02:00
parent 4a9e468f6e
commit 342f51b196
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
3 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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?") :

View File

@ -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);
/**