diff options
author | Paul Gilbert | 2019-05-07 19:04:30 +1000 |
---|---|---|
committer | Paul Gilbert | 2019-05-10 12:11:04 +1000 |
commit | cfd19b1a841814d93784af7472cabbc04680cf11 (patch) | |
tree | 0d4662892e8891ba12e621ffb6923886298192df | |
parent | 6b75eff73cb22181c924acf5e105316394d093e8 (diff) | |
download | scummvm-rg350-cfd19b1a841814d93784af7472cabbc04680cf11.tar.gz scummvm-rg350-cfd19b1a841814d93784af7472cabbc04680cf11.tar.bz2 scummvm-rg350-cfd19b1a841814d93784af7472cabbc04680cf11.zip |
GLK: HUGO: First detection entry
-rw-r--r-- | engines/glk/hugo/detection.cpp | 7 | ||||
-rw-r--r-- | engines/glk/hugo/detection_tables.h | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/engines/glk/hugo/detection.cpp b/engines/glk/hugo/detection.cpp index 6a8203be4e..299c8374ee 100644 --- a/engines/glk/hugo/detection.cpp +++ b/engines/glk/hugo/detection.cpp @@ -46,7 +46,7 @@ GameDescriptor HugoMetaEngine::findGame(const char *gameId) { } bool HugoMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) { - const char *const EXTENSIONS[] = { ".mag", ".rsc", nullptr }; + const char *const EXTENSIONS[] = { ".hex", nullptr }; // Loop through the files of the folder for (Common::FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { @@ -64,12 +64,7 @@ bool HugoMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &ga Common::File gameFile; if (!gameFile.open(*file)) continue; - if (gameFile.readUint32BE() != MKTAG('M', 'a', 'S', 'c')) { - gameFile.close(); - continue; - } - gameFile.seek(0); Common::String md5 = Common::computeStreamMD5AsString(gameFile, 5000); size_t filesize = gameFile.size(); gameFile.close(); diff --git a/engines/glk/hugo/detection_tables.h b/engines/glk/hugo/detection_tables.h index 8afe7c156c..b7f3a10f75 100644 --- a/engines/glk/hugo/detection_tables.h +++ b/engines/glk/hugo/detection_tables.h @@ -41,6 +41,8 @@ struct HugoGameDescription { const PlainGameDescriptor HUGO_GAME_LIST[] = { { "hugo", "Hugo IF Game" }, + { "annoyotron2", "Aggravatron: Annoyotron II" }, + { nullptr, nullptr } }; @@ -49,6 +51,7 @@ const PlainGameDescriptor HUGO_GAME_LIST[] = { #define TABLE_END_MARKER { nullptr, nullptr, nullptr, 0, Common::EN_ANY } const HugoGameDescription HUGO_GAMES[] = { + ENTRY0("annoyotron2", "944056721054fd1c9af9d1e95e63ce52", 66762), TABLE_END_MARKER }; |