mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 03:18:17 +00:00
Fixed endless looping in Longbow, when the after market GM patches are used
svn-id: r47731
This commit is contained in:
parent
a7165c02c1
commit
5b7d430550
@ -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));
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user