mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 20:51:14 +00:00
Slight cleanup and small bugfix for dumpScript()'s cmd_call
svn-id: r32151
This commit is contained in:
parent
25e7e1999a
commit
84610606c1
@ -215,13 +215,9 @@ void ScriptInterpreter::dumpScript(int16 scriptObjectIndex) {
|
|||||||
//(this->*_commands[opcode - 1].proc)();
|
//(this->*_commands[opcode - 1].proc)();
|
||||||
|
|
||||||
// Handle command data
|
// Handle command data
|
||||||
if (!strcmp(_commands[opcode - 1].desc, "cmd_branchTrue")) {
|
if (!strcmp(_commands[opcode - 1].desc, "cmd_branchTrue") ||
|
||||||
val = readInt16();
|
!strcmp(_commands[opcode - 1].desc, "cmd_branchFalse") ||
|
||||||
printf("Offset = %04X\n", val);
|
!strcmp(_commands[opcode - 1].desc, "cmd_branch")) {
|
||||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_branchFalse")) {
|
|
||||||
val = readInt16();
|
|
||||||
printf("Offset = %04X\n", val);
|
|
||||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_branch")) {
|
|
||||||
val = readInt16();
|
val = readInt16();
|
||||||
printf("Offset = %04X\n", val);
|
printf("Offset = %04X\n", val);
|
||||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_loadConstant")) {
|
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_loadConstant")) {
|
||||||
@ -234,6 +230,7 @@ void ScriptInterpreter::dumpScript(int16 scriptObjectIndex) {
|
|||||||
val = readInt16();
|
val = readInt16();
|
||||||
printf("Variable = %04X\n", val);
|
printf("Variable = %04X\n", val);
|
||||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_call")) {
|
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_call")) {
|
||||||
|
/*byte argc = */readByte();
|
||||||
// TODO
|
// TODO
|
||||||
printf("TODO\n");
|
printf("TODO\n");
|
||||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_arg") ||
|
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_arg") ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user