aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-03-03 23:52:48 +0000
committerTravis Howell2006-03-03 23:52:48 +0000
commitbd7d05dae60578c68183fa591974f010a578b2b3 (patch)
treec559532de1f8856c882a2214568a10f4954a6c06
parent76a4bf9e770a6101592b7adcc1c340d091a98643 (diff)
downloadscummvm-rg350-bd7d05dae60578c68183fa591974f010a578b2b3.tar.gz
scummvm-rg350-bd7d05dae60578c68183fa591974f010a578b2b3.tar.bz2
scummvm-rg350-bd7d05dae60578c68183fa591974f010a578b2b3.zip
Update opcodes for C64 maniac
svn-id: r21051
-rw-r--r--engines/scumm/intern.h6
-rw-r--r--engines/scumm/script_c64.cpp23
2 files changed, 16 insertions, 13 deletions
diff --git a/engines/scumm/intern.h b/engines/scumm/intern.h
index 47ba1123ae..7d5cdab07a 100644
--- a/engines/scumm/intern.h
+++ b/engines/scumm/intern.h
@@ -442,8 +442,8 @@ protected:
void o_putActorAtObject();
void o_pickupObject();
void o_lockSound();
- void o_lockActor();
- void o_loadActor();
+ void o_lockCostume();
+ void o_loadCostume();
void o_loadRoom();
void o_loadRoomWithEgo();
void o_lockScript();
@@ -451,7 +451,7 @@ protected:
void o_lockRoom();
void o_cursorCommand();
void o_lights();
- void o_unlockActor();
+ void o_unlockCostume();
void o_unlockScript();
void o_decrement();
void o_badOpcode();
diff --git a/engines/scumm/script_c64.cpp b/engines/scumm/script_c64.cpp
index 39ac69ce74..db4c6e70b7 100644
--- a/engines/scumm/script_c64.cpp
+++ b/engines/scumm/script_c64.cpp
@@ -59,7 +59,7 @@ void ScummEngine_c64::setupOpcodes() {
OPCODE(o5_breakHere),
OPCODE(o_animateActor),
OPCODE(o2_panCameraTo),
- OPCODE(o_lockActor),
+ OPCODE(o_lockCostume),
/* 14 */
OPCODE(o_print_c64),
OPCODE(o5_walkActorToActor),
@@ -96,7 +96,7 @@ void ScummEngine_c64::setupOpcodes() {
OPCODE(o_print_c64),
OPCODE(o2_ifState08),
/* 30 */
- OPCODE(o_loadActor),
+ OPCODE(o_loadCostume),
OPCODE(o_getBitVar),
OPCODE(o2_setCameraAt),
OPCODE(o_lockScript),
@@ -219,7 +219,7 @@ void ScummEngine_c64::setupOpcodes() {
OPCODE(o_pickupObject),
OPCODE(o_animateActor),
OPCODE(o2_panCameraTo),
- OPCODE(o_unlockActor),
+ OPCODE(o_unlockCostume),
/* 94 */
OPCODE(o5_print),
OPCODE(o2_actorFromPos),
@@ -256,7 +256,7 @@ void ScummEngine_c64::setupOpcodes() {
OPCODE(o_print_c64),
OPCODE(o2_ifNotState08),
/* B0 */
- OPCODE(o_loadActor),
+ OPCODE(o_loadCostume),
OPCODE(o_getBitVar),
OPCODE(o2_setCameraAt),
OPCODE(o_unlockScript),
@@ -590,16 +590,19 @@ void ScummEngine_c64::o_unlockSound() {
res.unlock(rtSound, resid);
}
-void ScummEngine_c64::o_loadActor() {
- debug(0, "o_loadActor (%d)", getVarOrDirectByte(PARAM_1));
+void ScummEngine_c64::o_loadCostume() {
+ int resid = getVarOrDirectByte(PARAM_1);
+ ensureResourceLoaded(rtCostume, resid);
}
-void ScummEngine_c64::o_lockActor() {
- debug(0, "o_lockActor (%d)", fetchScriptByte());
+void ScummEngine_c64::o_lockCostume() {
+ int resid = fetchScriptByte();
+ res.lock(rtCostume, resid);
}
-void ScummEngine_c64::o_unlockActor() {
- debug(0, "o_unlockActor (%d)", fetchScriptByte());
+void ScummEngine_c64::o_unlockCostume() {
+ int resid = fetchScriptByte();
+ res.unlock(rtCostume, resid);
}
void ScummEngine_c64::o_loadScript() {