mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
change debug output of script interpreter to more clearly print script number and offset
svn-id: r39640
This commit is contained in:
parent
e8ccbd93ed
commit
9ed052f38e
@ -1242,7 +1242,6 @@ script:
|
||||
/// low level interface to interpreter
|
||||
|
||||
uint16 moduleNo = scriptNo >> 12;
|
||||
debug(3, "Doing Script %x", (offset << 16) | scriptNo);
|
||||
uint16 *scriptData = _moduleList[moduleNo]; // get module address
|
||||
|
||||
if (!scriptData) { // We need to load the script module
|
||||
@ -1252,11 +1251,13 @@ script:
|
||||
|
||||
uint16 *moduleStart = scriptData;
|
||||
|
||||
debug(3, "Doing Script: %d:%d:%x", moduleNo, scriptNo & 0xFFF, offset ? (offset - moduleStart[scriptNo & 0xFFF]) : 0);
|
||||
|
||||
// Check whether we have an offset or what
|
||||
if (offset)
|
||||
scriptData = moduleStart + offset;
|
||||
else
|
||||
scriptData += scriptData[scriptNo & 0x0fff];
|
||||
scriptData += scriptData[scriptNo & 0x0FFF];
|
||||
|
||||
uint32 a = 0, b = 0, c = 0;
|
||||
uint16 command, s;
|
||||
|
Loading…
x
Reference in New Issue
Block a user