diff options
author | Paul Gilbert | 2018-12-31 22:32:07 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-31 22:32:07 -0800 |
commit | 4938ac9ea1b207f100a73e2ecbf617b7569fb4b0 (patch) | |
tree | 1268a49b90a5c7b8744ff266b5d5daef006c141a /engines/glk/frotz/detection.cpp | |
parent | fa51ea2138831f4f87f0d66a7f32f32c2942b8e6 (diff) | |
download | scummvm-rg350-4938ac9ea1b207f100a73e2ecbf617b7569fb4b0.tar.gz scummvm-rg350-4938ac9ea1b207f100a73e2ecbf617b7569fb4b0.tar.bz2 scummvm-rg350-4938ac9ea1b207f100a73e2ecbf617b7569fb4b0.zip |
GLK: Implement passing detection options to the engines
Diffstat (limited to 'engines/glk/frotz/detection.cpp')
-rw-r--r-- | engines/glk/frotz/detection.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/glk/frotz/detection.cpp b/engines/glk/frotz/detection.cpp index 57e2961fd7..273ca37342 100644 --- a/engines/glk/frotz/detection.cpp +++ b/engines/glk/frotz/detection.cpp @@ -41,8 +41,11 @@ void FrotzMetaEngine::getSupportedGames(PlainGameList &games) { GameDescriptor FrotzMetaEngine::findGame(const char *gameId) { for (const PlainGameDescriptor *pd = INFOCOM_GAME_LIST; pd->gameId; ++pd) { - if (!strcmp(gameId, pd->gameId)) - return *pd; + if (!strcmp(gameId, pd->gameId)) { + GameDescriptor gd(*pd); + gd._options |= OPTION_INFOCOM; + return gd; + } } for (const PlainGameDescriptor *pd = ZCODE_GAME_LIST; pd->gameId; ++pd) { if (!strcmp(gameId, pd->gameId)) |