aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/tads/detection.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-05-16 11:52:32 -1000
committerPaul Gilbert2019-05-24 18:21:06 -0700
commit54d240d81f8858f7ad694c690fcf738b3ec8b89d (patch)
tree5785eca82d5540605a16aa7a35dda116b291117c /engines/glk/tads/detection.h
parentb1f8e2ce837608ee18ebabe1097d64faae9c2243 (diff)
downloadscummvm-rg350-54d240d81f8858f7ad694c690fcf738b3ec8b89d.tar.gz
scummvm-rg350-54d240d81f8858f7ad694c690fcf738b3ec8b89d.tar.bz2
scummvm-rg350-54d240d81f8858f7ad694c690fcf738b3ec8b89d.zip
GLK: TADS: Improved detection to detect TADS version
Diffstat (limited to 'engines/glk/tads/detection.h')
-rw-r--r--engines/glk/tads/detection.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/glk/tads/detection.h b/engines/glk/tads/detection.h
index 0ed1e94214..5fadd57054 100644
--- a/engines/glk/tads/detection.h
+++ b/engines/glk/tads/detection.h
@@ -56,6 +56,13 @@ public:
* Check for game Id clashes with other sub-engines
*/
static void detectClashes(Common::StringMap &map);
+
+ /**
+ * Determines whether the given game is TADS 2 or 3
+ * @param game Open stream pointing to game file
+ * @returns 2 for TADS 2, 3 for TADS 3, or -1 for error
+ */
+ static int getTADSVersion(Common::SeekableReadStream &game);
};
} // End of namespace TADS