Fixed endless looping in Longbow, when the after market GM patches are used

svn-id: r47731
This commit is contained in:
Filippos Karapetis 2010-01-31 00:14:23 +00:00
parent a7165c02c1
commit 5b7d430550
2 changed files with 3 additions and 2 deletions

View File

@ -290,8 +290,6 @@ 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));

View File

@ -186,6 +186,9 @@ Common::Error SciEngine::run() {
return Common::kUnknownError;
}
// Add the after market GM patches for the specified game, if they exist
_resMan->addNewGMPatch(_gamestate->_gameId);
script_adjust_opcode_formats(_gamestate);
_kernel->loadKernelNames(getGameID(), _gamestate);