From ef161922d85a23ea99d9e86417c6ac8b675dc43d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 17 Oct 2018 22:44:45 -0700 Subject: ENGINES: Add optional extra configuration entries when creating new targets --- base/plugins.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'base/plugins.cpp') 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 -- cgit v1.2.3