diff options
author | Paul Gilbert | 2019-05-16 11:52:32 -1000 |
---|---|---|
committer | Paul Gilbert | 2019-05-24 18:21:06 -0700 |
commit | 54d240d81f8858f7ad694c690fcf738b3ec8b89d (patch) | |
tree | 5785eca82d5540605a16aa7a35dda116b291117c /engines/glk/tads/detection.h | |
parent | b1f8e2ce837608ee18ebabe1097d64faae9c2243 (diff) | |
download | scummvm-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.h | 7 |
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 |