diff options
author | Paul Gilbert | 2018-11-27 21:24:40 -0800 |
---|---|---|
committer | Paul Gilbert | 2018-12-08 19:05:59 -0800 |
commit | 75f4d34070a874437f6f339bac590f99d4b28f65 (patch) | |
tree | 3d451bd343a6f22feb3cecd097bfa43eced14900 /engines/glk/tads/detection_tables.h | |
parent | 09b682cb63fed029f43133f4a2d9daa3438ac8e2 (diff) | |
download | scummvm-rg350-75f4d34070a874437f6f339bac590f99d4b28f65.tar.gz scummvm-rg350-75f4d34070a874437f6f339bac590f99d4b28f65.tar.bz2 scummvm-rg350-75f4d34070a874437f6f339bac590f99d4b28f65.zip |
GLK: TADS: Add first detection entry, further fallback detection
Diffstat (limited to 'engines/glk/tads/detection_tables.h')
-rw-r--r-- | engines/glk/tads/detection_tables.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/engines/glk/tads/detection_tables.h b/engines/glk/tads/detection_tables.h index c8fe3184b5..d4d570920b 100644 --- a/engines/glk/tads/detection_tables.h +++ b/engines/glk/tads/detection_tables.h @@ -28,22 +28,32 @@ namespace Glk { namespace TADS { /** - * Game descriptor + * Game description */ -struct TADSGame { - const char *_md5; - const char *_gameId; - int32 _filesize; +struct TADSGameDescription { + const char *const _gameId; + const char *const _extra; + const char *const _md5; + size_t _filesize; + Common::Language _language; }; const TADSDescriptor TADS_GAME_LIST[] = { + // TADS 2 Games { "tads2", "TADS 2 Game", false }, + { "oncefuture", "Once and Future", false }, + + // TADS 3 Games { "tads3", "TADS 3 Game", true }, { nullptr, nullptr, false } }; -const TADSGame TADS_GAMES[] = { - { nullptr, nullptr, 0 } +#define ENTRY0(ID, MD5, FILESIZE) { ID, "", MD5, FILESIZE, Common::EN_ANY } +#define TABLE_END_MARKER { nullptr, nullptr, nullptr, 0, Common::EN_ANY } + +const TADSGameDescription TADS_GAMES[] = { + ENTRY0("oncefuture", "4ed995d0784520ca6f0ec5391d92f4d8", 909993), + TABLE_END_MARKER }; } // End of namespace Frotz |