diff options
author | Bastien Bouclet | 2018-06-02 14:45:36 +0200 |
---|---|---|
committer | Bastien Bouclet | 2019-11-03 11:43:00 +0100 |
commit | 780db83e13c12965af415c52c06f6d0e024cc135 (patch) | |
tree | de18f9d3417c4b766b81b81a9648b951d6725c84 /backends/platform/dc/dcmain.cpp | |
parent | c142838122c49811a3b77c6909705aab7121c6ff (diff) | |
download | scummvm-rg350-780db83e13c12965af415c52c06f6d0e024cc135.tar.gz scummvm-rg350-780db83e13c12965af415c52c06f6d0e024cc135.tar.bz2 scummvm-rg350-780db83e13c12965af415c52c06f6d0e024cc135.zip |
DC: Update for the engineId changes
Diffstat (limited to 'backends/platform/dc/dcmain.cpp')
-rw-r--r-- | backends/platform/dc/dcmain.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/backends/platform/dc/dcmain.cpp b/backends/platform/dc/dcmain.cpp index c84aef9c47..26cf9de5b4 100644 --- a/backends/platform/dc/dcmain.cpp +++ b/backends/platform/dc/dcmain.cpp @@ -365,28 +365,31 @@ int main() int DCLauncherDialog::runModal() { - char *base = NULL, *dir = NULL; + char *engineId = NULL, *gameId = NULL, *dir = NULL; Common::Language language = Common::UNK_LANG; Common::Platform platform = Common::kPlatformUnknown; - if (!selectGame(base, dir, language, platform, icon)) + if (!selectGame(engineId, gameId, dir, language, platform, icon)) g_system->quit(); // Set the game path. - ConfMan.addGameDomain(base); + ConfMan.addGameDomain(gameId); + ConfMan.set("engineid", engineId, gameId); + ConfMan.set("gameid", gameId, gameId); + if (dir != NULL) - ConfMan.set("path", dir, base); + ConfMan.set("path", dir, gameId); // Set the game language. if (language != Common::UNK_LANG) - ConfMan.set("language", Common::getLanguageCode(language), base); + ConfMan.set("language", Common::getLanguageCode(language), gameId); // Set the game platform. if (platform != Common::kPlatformUnknown) - ConfMan.set("platform", Common::getPlatformCode(platform), base); + ConfMan.set("platform", Common::getPlatformCode(platform), gameId); // Set the target. - ConfMan.setActiveDomain(base); + ConfMan.setActiveDomain(gameId); return 0; } |