diff options
author | Bastien Bouclet | 2016-09-15 18:43:42 +0200 |
---|---|---|
committer | Bastien Bouclet | 2019-11-03 11:43:00 +0100 |
commit | ae9f764c7ac4fcc418ca7182163f4e9646f4bc31 (patch) | |
tree | 42ee832807541746925bf13a6889068bac5df248 /engines/metaengine.h | |
parent | bb813719b56a3e2a51b7c73385d036f61fdde584 (diff) | |
download | scummvm-rg350-ae9f764c7ac4fcc418ca7182163f4e9646f4bc31.tar.gz scummvm-rg350-ae9f764c7ac4fcc418ca7182163f4e9646f4bc31.tar.bz2 scummvm-rg350-ae9f764c7ac4fcc418ca7182163f4e9646f4bc31.zip |
ENGINES: Automatically upgrade the targets on launch to add an engine ID
Diffstat (limited to 'engines/metaengine.h')
-rw-r--r-- | engines/metaengine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/metaengine.h b/engines/metaengine.h index 89f786f7b0..a6c2c067e2 100644 --- a/engines/metaengine.h +++ b/engines/metaengine.h @@ -295,12 +295,19 @@ public: * Returns the created target name. */ Common::String createTargetForGame(const DetectedGame &game); + + /** Upgrade a target to the current configuration format */ + void upgradeTargetIfNecessary(const Common::String &target) const; + private: /** Find a game across all loaded plugins */ PlainGameDescriptor findGameInLoadedPlugins(const Common::String &gameName, const Plugin **plugin = NULL) const; /** Find a loaded plugin with the given engine ID */ const Plugin *findLoadedPlugin(const Common::String &engineId) const; + + /** Use heuristics to complete a target lacking an engine ID */ + void upgradeTargetForEngineId(const Common::String &target) const; }; /** Convenience shortcut for accessing the engine manager. */ |