aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/tads/detection.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-31 19:47:14 -0800
committerPaul Gilbert2018-12-31 19:47:14 -0800
commit013f39cb5d7029e9569861034661770d1578847e (patch)
treea8796b50ce79001dc04dcc9db7e661f5d928fead /engines/glk/tads/detection.h
parent84b6534c3fcf3315ed1c7fe3cabbdd167fc748a9 (diff)
downloadscummvm-rg350-013f39cb5d7029e9569861034661770d1578847e.tar.gz
scummvm-rg350-013f39cb5d7029e9569861034661770d1578847e.tar.bz2
scummvm-rg350-013f39cb5d7029e9569861034661770d1578847e.zip
GLK: Standardizing on a common GameDescriptor class for detectors
Diffstat (limited to 'engines/glk/tads/detection.h')
-rw-r--r--engines/glk/tads/detection.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/engines/glk/tads/detection.h b/engines/glk/tads/detection.h
index f876cb2cf2..0ed1e94214 100644
--- a/engines/glk/tads/detection.h
+++ b/engines/glk/tads/detection.h
@@ -25,25 +25,12 @@
#include "common/fs.h"
#include "engines/game.h"
+#include "glk/detection.h"
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;
- }
-};
+enum TADSOption { OPTION_TADS2 = 0, OPTION_TADS3 = 1 };
/**
* Meta engine for TADS interpreter
@@ -58,7 +45,7 @@ public:
/**
* Returns a game description for the given game Id, if it's supported
*/
- static TADSDescriptor findGame(const char *gameId);
+ static GameDescriptor findGame(const char *gameId);
/**
* Detect supported games