aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2019-05-07 16:37:15 +1000
committerPaul Gilbert2019-05-07 16:37:15 +1000
commitf561f37a01a5d7f498e9f552680ef4730012bab5 (patch)
tree909ffb2dcb7791a81ad0c6a7262d1027dc967fa1 /engines
parent5f5ac6b475599da5c11df98852f1dbd1e62db8b5 (diff)
downloadscummvm-rg350-f561f37a01a5d7f498e9f552680ef4730012bab5.tar.gz
scummvm-rg350-f561f37a01a5d7f498e9f552680ef4730012bab5.tar.bz2
scummvm-rg350-f561f37a01a5d7f498e9f552680ef4730012bab5.zip
GLK: MAGNETIC: Add game detection entries
Diffstat (limited to 'engines')
-rw-r--r--engines/glk/magnetic/detection.cpp2
-rw-r--r--engines/glk/magnetic/detection_tables.h17
-rw-r--r--engines/glk/magnetic/magnetic.h2
3 files changed, 19 insertions, 2 deletions
diff --git a/engines/glk/magnetic/detection.cpp b/engines/glk/magnetic/detection.cpp
index db899a28be..83d1143dd0 100644
--- a/engines/glk/magnetic/detection.cpp
+++ b/engines/glk/magnetic/detection.cpp
@@ -46,7 +46,7 @@ GameDescriptor MagneticMetaEngine::findGame(const char *gameId) {
}
bool MagneticMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) {
- const char *const EXTENSIONS[] = { ".rsc", nullptr };
+ const char *const EXTENSIONS[] = { ".mag", ".rsc", nullptr };
// Loop through the files of the folder
for (Common::FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
diff --git a/engines/glk/magnetic/detection_tables.h b/engines/glk/magnetic/detection_tables.h
index 18d3b84b33..7476c34e0b 100644
--- a/engines/glk/magnetic/detection_tables.h
+++ b/engines/glk/magnetic/detection_tables.h
@@ -41,13 +41,30 @@ struct MagneticGameDescription {
const PlainGameDescriptor MAGNETIC_GAME_LIST[] = {
{ "magnetic", "Magnetic Scrolls Game" },
+ { "corruption", "Corruption" },
+ { "fish", "Fish!" },
+ { "guild", "The Guild of Thieves" },
+ { "myth", "Myth" },
+ { "pawn", "the Pawn" },
+ { "wonderland", "Wonderland" },
+
{ nullptr, nullptr }
};
#define ENTRY0(ID, MD5, FILESIZE) { ID, nullptr, MD5, FILESIZE, Common::EN_ANY }
+#define ENTRY1(ID, EXTRA, MD5, FILESIZE) { ID, EXTRA, MD5, FILESIZE, Common::EN_ANY }
#define TABLE_END_MARKER { nullptr, nullptr, nullptr, 0, Common::EN_ANY }
const MagneticGameDescription MAGNETIC_GAMES[] = {
+ ENTRY0("corruption", "313880cbe0f15bfa259ebaf228b4d0e9", 167466),
+ ENTRY1("corruption", "Collection", "6fe35b357fa0311450d3a9c809e60ba8", 177185),
+ ENTRY0("fish", "2efb8118f4cb9a36bb54646ce41a950e", 162858),
+ ENTRY1("fish", "Collection", "cfe333306597d36c8aa3fc64f6be94ba", 172517),
+ ENTRY0("guild", "bab78740d39ee5e058faf4912fdbf33d", 130858),
+ ENTRY1("guild", "Collection", "36af907a4ec9db909148f308287586f1", 141766),
+ ENTRY0("myth", "9c2a5272a9c0b1e173401ba4df32567a", 99370),
+ ENTRY0("pawn", "4a7847980f9e942acd7aa51ea12a6586", 103466),
+ ENTRY0("wonderland", "2cea8fccf42d570be8836416c2802613", 183916),
TABLE_END_MARKER
};
diff --git a/engines/glk/magnetic/magnetic.h b/engines/glk/magnetic/magnetic.h
index 6cf05c942e..04f13331bf 100644
--- a/engines/glk/magnetic/magnetic.h
+++ b/engines/glk/magnetic/magnetic.h
@@ -188,7 +188,7 @@ public:
/**
* Returns the running interpreter type
*/
- virtual InterpreterType getInterpreterType() const override { return INTERPRETER_GLULXE; }
+ virtual InterpreterType getInterpreterType() const override { return INTERPRETER_MAGNETIC; }
/**
* Load a savegame from the passed stream