diff options
author | Paul Gilbert | 2018-11-27 21:02:49 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | 09b682cb63fed029f43133f4a2d9daa3438ac8e2 (patch) | |
tree | 60da8622fda66f8477c463a4b99d0ffe54fb72d0 /engines/glk/tads/detection.h | |
parent | 0b7a29c7973025d32d8952e97cdc4d13a2794c36 (diff) | |
download | scummvm-rg350-09b682cb63fed029f43133f4a2d9daa3438ac8e2.tar.gz scummvm-rg350-09b682cb63fed029f43133f4a2d9daa3438ac8e2.tar.bz2 scummvm-rg350-09b682cb63fed029f43133f4a2d9daa3438ac8e2.zip |
GLK: TADS: Skeletons for TADS 2 & 3 subengines, extra detection logic
Diffstat (limited to 'engines/glk/tads/detection.h')
-rw-r--r-- | engines/glk/tads/detection.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/engines/glk/tads/detection.h b/engines/glk/tads/detection.h index 59a6bc72a3..3e4d3e3a00 100644 --- a/engines/glk/tads/detection.h +++ b/engines/glk/tads/detection.h @@ -30,6 +30,22 @@ namespace Glk { namespace TADS { /** + * TADS game descriptior + */ +struct TADSDescriptor { + const char *gameId; + const char *description; + bool isTADS3; + + operator PlainGameDescriptor() const { + PlainGameDescriptor pd; + pd.gameId = gameId; + pd.description = description; + return pd; + } +}; + +/** * Meta engine for TADS interpreter */ class TADSMetaEngine { @@ -42,7 +58,7 @@ public: /** * Returns a game description for the given game Id, if it's supported */ - static PlainGameDescriptor findGame(const char *gameId); + static TADSDescriptor findGame(const char *gameId); /** * Detect supported games |