aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-16 00:22:22 +0000
committerFilippos Karapetis2010-01-16 00:22:22 +0000
commit22e8b3ed027669496e7ebd57e23eb391e61b33cf (patch)
treed5bd51be4ee9d92cbe383f0e5d4efe221224b7c0 /engines/sci/engine
parentc4a9d373ca30eed9df9aaf555f9798d131f0dd19 (diff)
downloadscummvm-rg350-22e8b3ed027669496e7ebd57e23eb391e61b33cf.tar.gz
scummvm-rg350-22e8b3ed027669496e7ebd57e23eb391e61b33cf.tar.bz2
scummvm-rg350-22e8b3ed027669496e7ebd57e23eb391e61b33cf.zip
The GM patches from Sierra's GM utility can now also be processed with their original names. Thus, the user can just extract the patches from Sierra's GM utility in the extras folder, and it's not necessary to rename each individual file to "4.pat" and place it inside the associated game (works with the games that Sierra's GM patch updates, i.e. LSL1, LSL5, Hoyle3, SQ1, SQ4, Eco1, Longbow and Fairy tales)
svn-id: r47318
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp
index d3006a719e..d84df17117 100644
--- a/engines/sci/engine/game.cpp
+++ b/engines/sci/engine/game.cpp
@@ -288,6 +288,8 @@ int game_init(EngineState *s) {
s->_gameObj = s->_segMan->lookupScriptExport(0, 0);
uint32 gameFlags = 0; // unused
s->_gameId = convertSierraGameId(s->_segMan->getObjectName(s->_gameObj), &gameFlags, s->resMan);
+ // Add the after market GM patches for the specified game, if they exist
+ s->resMan->addNewGMPatch(s->_gameId);
debug(2, " \"%s\" at %04x:%04x", s->_gameId.c_str(), PRINT_REG(s->_gameObj));