diff options
Diffstat (limited to 'scumm/script_c64.cpp')
-rw-r--r-- | scumm/script_c64.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/scumm/script_c64.cpp b/scumm/script_c64.cpp index c36157a360..4b21035c7f 100644 --- a/scumm/script_c64.cpp +++ b/scumm/script_c64.cpp @@ -139,7 +139,7 @@ void ScummEngine_c64::setupOpcodes() { OPCODE(o_nop), OPCODE(o_animateActor), OPCODE(o5_actorFollowCamera), - OPCODE(o5_startSound), + OPCODE(o_lockSound), /* 54 */ OPCODE(o5_setObjectName), OPCODE(o2_actorFromPos), @@ -299,7 +299,7 @@ void ScummEngine_c64::setupOpcodes() { OPCODE(o_nop), OPCODE(o_animateActor), OPCODE(o5_actorFollowCamera), - OPCODE(o5_stopSound), + OPCODE(o_unlockSound), /* D4 */ OPCODE(o5_setObjectName), OPCODE(o2_actorFromPos), @@ -487,6 +487,18 @@ void ScummEngine_c64::o_loadSound() { ensureResourceLoaded(rtSound, resid); } +void ScummEngine_c64::o_lockSound() { + int resid = fetchScriptByte(); + res.lock(rtSound, resid); + debug(0, "o_lockSound (%d)", resid); +} + +void ScummEngine_c64::o_unlockSound() { + int resid = fetchScriptByte(); + res.unlock(rtSound, resid); + debug(0, "o_unlockSound (%d)", resid); +} + void ScummEngine_c64::o_loadActor() { debug(0, "o_loadActor (%d)", getVarOrDirectByte(PARAM_1)); } |