ENGINES: Make AdvancedMetaEngine::toDetectedGame virtual
To allow subclasses to post-process the games detected by AdvancedMetaEngine.
This commit is contained in:
parent
bad365c97e
commit
675776ffe9
2 changed files with 4 additions and 8 deletions
|
@ -289,15 +289,11 @@ Common::Error AdvancedMetaEngine::createInstance(OSystem *syst, Engine **engine)
|
|||
if (!agdDesc.desc)
|
||||
return Common::kNoGameDataFoundError;
|
||||
|
||||
DetectedGame gameDescriptor = toDetectedGame(agdDesc);
|
||||
|
||||
// If the GUI options were updated, we catch this here and update them in the users config
|
||||
// file transparently.
|
||||
Common::String lang = getGameGUIOptionsDescriptionLanguage(agdDesc.desc->language);
|
||||
if (agdDesc.desc->flags & ADGF_ADDENGLISH)
|
||||
lang += " " + getGameGUIOptionsDescriptionLanguage(Common::EN_ANY);
|
||||
|
||||
Common::updateGameGUIOptions(agdDesc.desc->guiOptions + _guiOptions, lang);
|
||||
|
||||
DetectedGame gameDescriptor = toDetectedGame(agdDesc);
|
||||
ConfMan.setAndFlush("guioptions", gameDescriptor.getGUIOptions());
|
||||
|
||||
bool showTestingWarning = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue