aboutsummaryrefslogtreecommitdiff
path: root/engines/game.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-10-17 22:44:45 -0700
committerPaul Gilbert2018-12-08 19:05:59 -0800
commitef161922d85a23ea99d9e86417c6ac8b675dc43d (patch)
tree8957b0f7a0bdd757290efb6ff4f866a3df3fced7 /engines/game.h
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 'engines/game.h')
-rw-r--r--engines/game.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/game.h b/engines/game.h
index 14f9962ce6..304166d05f 100644
--- a/engines/game.h
+++ b/engines/game.h
@@ -148,6 +148,21 @@ struct DetectedGame {
*/
GameSupportLevel gameSupportLevel;
+ /**
+ * A list of extra keys to write to the configuration file
+ */
+ Common::StringMap _extraConfigEntries;
+
+ /**
+ * Allows adding of extra entries to be saved as part of the detection entry
+ * in the configuration file.
+ * @remarks Any entry added using this should not be relied on being present
+ * in the configuration file, since starting games directly from the
+ * command line bypasses the game detection code
+ */
+ void addExtraEntry(const Common::String &key, const Common::String &value) {
+ _extraConfigEntries[key] = value;
+ }
private:
/**
* Update the description string by appending (EXTRA/PLATFORM/LANG) to it.