[Scummvm-git-logs] scummvm master -> 7d311d58b4c9d101edd14c654a90ad6199f5fc46
sdelamarre
noreply at scummvm.org
Fri Mar 17 00:38:09 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7d311d58b4 GOB: prefix opcode debug messages with script name and offset
Commit: 7d311d58b4c9d101edd14c654a90ad6199f5fc46
https://github.com/scummvm/scummvm/commit/7d311d58b4c9d101edd14c654a90ad6199f5fc46
Author: Simon Delamarre (simon.delamarre14 at gmail.com)
Date: 2023-03-17T01:37:58+01:00
Commit Message:
GOB: prefix opcode debug messages with script name and offset
Changed paths:
engines/gob/inter.cpp
diff --git a/engines/gob/inter.cpp b/engines/gob/inter.cpp
index c38a5361d5c..c78a7d2d322 100644
--- a/engines/gob/inter.cpp
+++ b/engines/gob/inter.cpp
@@ -68,7 +68,8 @@ void Inter::setupOpcodes() {
}
void Inter::executeOpcodeDraw(byte i) {
- debugC(1, kDebugDrawOp, "opcodeDraw %d [0x%X] (%s)", i, i, getDescOpcodeDraw(i));
+ debugC(1, kDebugDrawOp, "%s:%08d: opcodeDraw %d [0x%X] (%s)",
+ _vm->_game->_curTotFile.c_str(), _vm->_game->_script->pos(), i, i, getDescOpcodeDraw(i));
if (_opcodesDraw[i].proc && _opcodesDraw[i].proc->isValid())
(*_opcodesDraw[i].proc)();
@@ -77,8 +78,8 @@ void Inter::executeOpcodeDraw(byte i) {
}
void Inter::executeOpcodeFunc(byte i, byte j, OpFuncParams ¶ms) {
- debugC(1, kDebugFuncOp, "opcodeFunc %d.%d [0x%X.0x%X] (%s)",
- i, j, i, j, getDescOpcodeFunc(i, j));
+ debugC(1, kDebugFuncOp, "%s:%08d: opcodeFunc %d.%d [0x%X.0x%X] (%s)",
+ _vm->_game->_curTotFile.c_str(), _vm->_game->_script->pos(), i, j, i, j, getDescOpcodeFunc(i, j));
int n = i * 16 + j;
if ((i <= 4) && (j <= 15) && _opcodesFunc[n].proc && _opcodesFunc[n].proc->isValid())
@@ -88,8 +89,8 @@ void Inter::executeOpcodeFunc(byte i, byte j, OpFuncParams ¶ms) {
}
void Inter::executeOpcodeGob(int i, OpGobParams ¶ms) {
- debugC(1, kDebugGobOp, "opcodeGoblin %d [0x%X] (%s)",
- i, i, getDescOpcodeGob(i));
+ debugC(1, kDebugGobOp, "%s:%08d: opcodeGoblin %d [0x%X] (%s)",
+ _vm->_game->_curTotFile.c_str(), _vm->_game->_script->pos(), i, i, getDescOpcodeGob(i));
OpcodeEntry<OpcodeGob> *op = nullptr;
More information about the Scummvm-git-logs
mailing list