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 /gui | |
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 'gui')
-rw-r--r-- | gui/editgamedialog.cpp | 2 | ||||
-rw-r--r-- | gui/launcher.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp index ac030d7678..4f3c1647a1 100644 --- a/gui/editgamedialog.cpp +++ b/gui/editgamedialog.cpp @@ -100,6 +100,8 @@ protected: EditGameDialog::EditGameDialog(const String &domain) : OptionsDialog(domain, "GameOptions") { + EngineMan.upgradeTargetIfNecessary(domain); + // Retrieve all game specific options. const Plugin *plugin = nullptr; // To allow for game domains without a gameid. diff --git a/gui/launcher.cpp b/gui/launcher.cpp index c8c2cc0583..a3151a0455 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -481,6 +481,8 @@ void LauncherDialog::loadGame(int item) { String target = _domains[item]; target.toLowercase(); + EngineMan.upgradeTargetIfNecessary(target); + // Look for the plugin const Plugin *plugin = nullptr; EngineMan.findTarget(target, &plugin); |