From 09b682cb63fed029f43133f4a2d9daa3438ac8e2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 27 Nov 2018 21:02:49 -0800 Subject: GLK: TADS: Skeletons for TADS 2 & 3 subengines, extra detection logic --- engines/glk/tads/detection.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'engines/glk/tads/detection.h') 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 @@ -29,6 +29,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 */ @@ -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 -- cgit v1.2.3