aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorPaul Gilbert2018-10-17 22:44:45 -0700
committerPaul Gilbert2018-12-08 19:05:59 -0800
commitef161922d85a23ea99d9e86417c6ac8b675dc43d (patch)
tree8957b0f7a0bdd757290efb6ff4f866a3df3fced7 /base
parentdb35a9cdc8832ce7768202126842d64a84afc444 (diff)
downloadscummvm-rg350-ef161922d85a23ea99d9e86417c6ac8b675dc43d.tar.gz
scummvm-rg350-ef161922d85a23ea99d9e86417c6ac8b675dc43d.tar.bz2
scummvm-rg350-ef161922d85a23ea99d9e86417c6ac8b675dc43d.zip
ENGINES: Add optional extra configuration entries when creating new targets
Diffstat (limited to 'base')
-rw-r--r--base/plugins.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/plugins.cpp b/base/plugins.cpp
index f6bbeacf74..f4d18efb1c 100644
--- a/base/plugins.cpp
+++ b/base/plugins.cpp
@@ -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