aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/magnetic/detection.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-11-21 06:47:49 -0800
committerPaul Gilbert2019-11-22 18:49:07 -0800
commit9df3c85184b10a71be27209313efbc23974d1225 (patch)
tree251ff9a34997839b2567e76125350da9803be3f9 /engines/glk/magnetic/detection.cpp
parent9af0d1519444f6c82df24fb63be5d3def769f797 (diff)
downloadscummvm-rg350-9df3c85184b10a71be27209313efbc23974d1225.tar.gz
scummvm-rg350-9df3c85184b10a71be27209313efbc23974d1225.tar.bz2
scummvm-rg350-9df3c85184b10a71be27209313efbc23974d1225.zip
GLK: MAGNETIC: Making functions all class methods, statics into class fields
Diffstat (limited to 'engines/glk/magnetic/detection.cpp')
-rw-r--r--engines/glk/magnetic/detection.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/glk/magnetic/detection.cpp b/engines/glk/magnetic/detection.cpp
index cc1714eaf1..54a0e7b928 100644
--- a/engines/glk/magnetic/detection.cpp
+++ b/engines/glk/magnetic/detection.cpp
@@ -75,7 +75,7 @@ bool MagneticMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames
gameFile.close();
// Check for known games
- const MagneticGameDescription *p = MAGNETIC_GAMES;
+ const GlkDetectionEntry *p = MAGNETIC_GAMES;
while (p->_gameId && (md5 != p->_md5 || filesize != p->_filesize))
++p;
@@ -99,5 +99,16 @@ void MagneticMetaEngine::detectClashes(Common::StringMap &map) {
}
}
+const gms_game_table_t *gms_gameid_lookup_game(uint32 undo_size, uint32 undo_pc) {
+ const gms_game_table_t *game;
+
+ for (game = GMS_GAME_TABLE; game->name; game++) {
+ if (game->undo_size == undo_size && game->undo_pc == undo_pc)
+ break;
+ }
+
+ return game->name ? game : nullptr;
+}
+
} // End of namespace Magnetic
} // End of namespace Glk