From 8e70329ce3d550a621843ffc055e416797e6054d Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 3 Mar 2007 23:02:54 +0000 Subject: Fix level selection in PC Engine version of Loom. svn-id: r25954 --- engines/scumm/script_v5.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines/scumm/script_v5.cpp') diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp index 650a946f93..e2e7b87ff0 100644 --- a/engines/scumm/script_v5.cpp +++ b/engines/scumm/script_v5.cpp @@ -1705,6 +1705,12 @@ void ScummEngine_v5::o5_resourceRoutines() { int op = _opcode & 0x3F; + // FIXME: Sound resources are currently missing + if (_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine && + (op == 2 || op == 6)) { + return; + } + switch (op) { case 1: // SO_LOAD_SCRIPT case 2: // SO_LOAD_SOUND @@ -1739,6 +1745,9 @@ void ScummEngine_v5::o5_resourceRoutines() { _res->lock(rtScript, resid); break; case 10: // SO_LOCK_SOUND + // FIXME: Sound resources are currently missing + if (_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine) + break; _res->lock(rtSound, resid); break; case 11: // SO_LOCK_COSTUME @@ -1756,6 +1765,9 @@ void ScummEngine_v5::o5_resourceRoutines() { _res->unlock(rtScript, resid); break; case 14: // SO_UNLOCK_SOUND + // FIXME: Sound resources are currently missing + if (_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine) + break; _res->unlock(rtSound, resid); break; case 15: // SO_UNLOCK_COSTUME -- cgit v1.2.3