COMMON: add new flag ADGF_UNSUPPORTED to advanced detector
This will give an error dialog and not actually start the game. The dialog can be customized with a message from the ADGameDescription::extra field. Some changes have been made to DetectedGame to prevent the string from the extras field to be appended to the game description.
This commit is contained in:
parent
b25d81ca1d
commit
3437beffab
6 changed files with 39 additions and 14 deletions
|
@ -654,6 +654,13 @@ bool Engine::warnUserAboutUnsupportedGame() {
|
|||
return true;
|
||||
}
|
||||
|
||||
void Engine::errorUnsupportedGame(Common::String &extraMsg) {
|
||||
Common::String message = extraMsg.empty() ? _("This game is not supported.") : _("This game is not supported for the following reason:\n\n");
|
||||
message += _(extraMsg);
|
||||
message += "\n\n";
|
||||
GUI::MessageDialog(message).runModal();
|
||||
}
|
||||
|
||||
uint32 Engine::getTotalPlayTime() const {
|
||||
if (!_pauseLevel)
|
||||
return _system->getMillis() - _engineStartTime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue