mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
AD: Fix compilation
This commit is contained in:
parent
4a9e468f6e
commit
342f51b196
@ -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
|
||||
|
@ -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?") :
|
||||
|
@ -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);
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user