aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/vga.cpp
diff options
context:
space:
mode:
authorD G Turner2014-05-11 12:46:55 +0100
committerD G Turner2014-05-11 12:46:55 +0100
commitbe686829469b1007f3dec00f658431774a734189 (patch)
tree1d7717e560d95c22bc2ece9a58fc872606edc022 /engines/agos/vga.cpp
parent6856b09d5a0024397895984aeb8d79d4a77e9111 (diff)
downloadscummvm-rg350-be686829469b1007f3dec00f658431774a734189.tar.gz
scummvm-rg350-be686829469b1007f3dec00f658431774a734189.tar.bz2
scummvm-rg350-be686829469b1007f3dec00f658431774a734189.zip
AGOS: Switch VGA opcode debugging to debug flag, rather than level 3.
This is now set by --debugflags=vga_opcode rather than -d 3, though it will still require a debug level greater than 0.
Diffstat (limited to 'engines/agos/vga.cpp')
-rw-r--r--engines/agos/vga.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp
index c656c0167a..31191792a1 100644
--- a/engines/agos/vga.cpp
+++ b/engines/agos/vga.cpp
@@ -27,6 +27,7 @@
#include "agos/intern.h"
#include "agos/vga.h"
+#include "common/debug-channels.h"
#include "common/endian.h"
#include "common/system.h"
#include "common/textconsole.h"
@@ -152,7 +153,7 @@ void AGOSEngine::runVgaScript() {
for (;;) {
uint opcode;
- if (_dumpVgaOpcodes) {
+ if (DebugMan.isDebugChannelEnabled(kDebugVGAOpcode)) {
if (_vcPtr != (const byte *)&_vcGetOutOfCode) {
debugN("%.5d %.5X: %5d %4d ", _vgaTickCounter, (unsigned int)(_vcPtr - _curVgaFile1), _vgaCurSpriteId, _vgaCurZoneNum);
dumpVideoScript(_vcPtr, true);
@@ -381,8 +382,7 @@ void AGOSEngine::vcSkipNextInstruction() {
_vcPtr += opcodeParamLenPN[opcode];
}
- if (_dumpVgaOpcodes)
- debugN("; skipped\n");
+ debugCN(kDebugVGAOpcode, "; skipped\n");
}
// VGA Script commands