ENGINES: Remove redundant overload

This commit is contained in:
Orgad Shaneh 2021-04-19 22:09:09 +03:00 committed by Eugene Sandulenko
parent cf87555c85
commit 94f0fe722f
2 changed files with 1 additions and 6 deletions

View file

@ -644,10 +644,6 @@ void Engine::openMainMenuDialog() {
syncSoundSettings(); syncSoundSettings();
} }
bool Engine::warnUserAboutUnsupportedGame() {
return warnUserAboutUnsupportedGame("");
}
bool Engine::warnUserAboutUnsupportedGame(Common::String msg) { bool Engine::warnUserAboutUnsupportedGame(Common::String msg) {
if (ConfMan.getBool("enable_unsupported_game_warning")) { if (ConfMan.getBool("enable_unsupported_game_warning")) {
GUI::MessageDialog alert(!msg.empty() ? _("WARNING: ") + Common::U32String(msg) + _(" Shall we still run the game?") : GUI::MessageDialog alert(!msg.empty() ? _("WARNING: ") + Common::U32String(msg) + _(" Shall we still run the game?") :

View file

@ -546,8 +546,7 @@ public:
* *
* @return True if the user chooses to start anyway, false otherwise. * @return True if the user chooses to start anyway, false otherwise.
*/ */
static bool warnUserAboutUnsupportedGame(); static bool warnUserAboutUnsupportedGame(Common::String msg = Common::String());
static bool warnUserAboutUnsupportedGame(Common::String msg);
/** /**
* Display an error message to the user that the game is not supported. * Display an error message to the user that the game is not supported.