aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/tads/detection.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-14 18:25:20 -0800
committerPaul Gilbert2018-12-14 18:25:20 -0800
commitb84ee752cf50448590391b7c5e9f7ec448b9adfb (patch)
tree0ddaba980ca2ff929c14932d521ac9861ab900b5 /engines/glk/tads/detection.cpp
parentc3bc9f80b5847eaa261d05fbc779675c99436f2c (diff)
downloadscummvm-rg350-b84ee752cf50448590391b7c5e9f7ec448b9adfb.tar.gz
scummvm-rg350-b84ee752cf50448590391b7c5e9f7ec448b9adfb.tar.bz2
scummvm-rg350-b84ee752cf50448590391b7c5e9f7ec448b9adfb.zip
GLK: Detect game Id clashes across different sub-engines
Diffstat (limited to 'engines/glk/tads/detection.cpp')
-rw-r--r--engines/glk/tads/detection.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/glk/tads/detection.cpp b/engines/glk/tads/detection.cpp
index df7eee1585..95f7330d65 100644
--- a/engines/glk/tads/detection.cpp
+++ b/engines/glk/tads/detection.cpp
@@ -96,5 +96,13 @@ bool TADSMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &ga
return !gameList.empty();
}
+void TADSMetaEngine::detectClashes(Common::StringMap &map) {
+ for (const TADSDescriptor *pd = TADS_GAME_LIST; pd->gameId; ++pd) {
+ if (map.contains(pd->gameId))
+ error("Duplicate game Id found - %s", pd->gameId);
+ map[pd->gameId] = "";
+ }
+}
+
} // End of namespace TADS
} // End of namespace Glk