ENGINES: Add optional extra configuration entries when creating new targets
This commit is contained in:
parent
db35a9cdc8
commit
ef161922d8
2 changed files with 20 additions and 0 deletions
|
@ -580,6 +580,11 @@ Common::String EngineManager::createTargetForGame(const DetectedGame &game) {
|
|||
addStringToConf("extra", game.extra, domain);
|
||||
addStringToConf("guioptions", game.getGUIOptions(), domain);
|
||||
|
||||
// Add any extra configuration keys
|
||||
for (Common::StringMap::iterator i = game._extraConfigEntries.begin();
|
||||
i != game._extraConfigEntries.end(); ++i)
|
||||
addStringToConf((*i)._key, (*i)._value, domain);
|
||||
|
||||
// TODO: Setting the description field here has the drawback
|
||||
// that the user does never notice when we upgrade our descriptions.
|
||||
// It might be nice to leave this field empty, and only set it to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue