mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 12:44:02 +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)();
|
||||
|
||||
// Handle command data
|
||||
if (!strcmp(_commands[opcode - 1].desc, "cmd_branchTrue")) {
|
||||
val = readInt16();
|
||||
printf("Offset = %04X\n", val);
|
||||
} 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")) {
|
||||
if (!strcmp(_commands[opcode - 1].desc, "cmd_branchTrue") ||
|
||||
!strcmp(_commands[opcode - 1].desc, "cmd_branchFalse") ||
|
||||
!strcmp(_commands[opcode - 1].desc, "cmd_branch")) {
|
||||
val = readInt16();
|
||||
printf("Offset = %04X\n", val);
|
||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_loadConstant")) {
|
||||
@ -234,6 +230,7 @@ void ScriptInterpreter::dumpScript(int16 scriptObjectIndex) {
|
||||
val = readInt16();
|
||||
printf("Variable = %04X\n", val);
|
||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_call")) {
|
||||
/*byte argc = */readByte();
|
||||
// TODO
|
||||
printf("TODO\n");
|
||||
} else if (!strcmp(_commands[opcode - 1].desc, "cmd_arg") ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user