aboutsummaryrefslogtreecommitdiff
path: root/simon/debug.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-11-12 06:01:24 +0000
committerTravis Howell2005-11-12 06:01:24 +0000
commitb4908f449e0327516f5e1289f2651ede5da45274 (patch)
treebf5e973d5e41a47063954b17ec5a7b8be350d095 /simon/debug.cpp
parent5496f912695fbfa7faf3b84a661f746c34e2ba24 (diff)
downloadscummvm-rg350-b4908f449e0327516f5e1289f2651ede5da45274.tar.gz
scummvm-rg350-b4908f449e0327516f5e1289f2651ede5da45274.tar.bz2
scummvm-rg350-b4908f449e0327516f5e1289f2651ede5da45274.zip
Old targets will be auto updated.
Many non-English versions will be broken until information is updated. svn-id: r19563
Diffstat (limited to 'simon/debug.cpp')
-rw-r--r--simon/debug.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/simon/debug.cpp b/simon/debug.cpp
index 8ce2f3101a..b1e26cedb0 100644
--- a/simon/debug.cpp
+++ b/simon/debug.cpp
@@ -37,13 +37,13 @@ const byte *SimonEngine::dumpOpcode(const byte *p) {
opcode = *p++;
if (opcode == 255)
return NULL;
- if (_game == GAME_FEEBLEFILES) {
+ if (getGameType() == GType_FF) {
st = s = feeblefiles_opcode_name_table[opcode];
- } else if (_game & GF_SIMON2 && _game & GF_TALKIE) {
+ } else if (getGameType() == GType_SIMON2 && getFeatures() & GF_TALKIE) {
st = s = simon2talkie_opcode_name_table[opcode];
- } else if (_game & GF_TALKIE) {
+ } else if (getFeatures() & GF_TALKIE) {
st = s = simon1talkie_opcode_name_table[opcode];
- } else if (_game & GF_SIMON2) {
+ } else if (getGameType() == GType_SIMON2) {
st = s = simon2dos_opcode_name_table[opcode];
} else {
st = s = simon1dos_opcode_name_table[opcode];
@@ -176,7 +176,7 @@ void SimonEngine::dump_video_script(const byte *src, bool one_opcode_only) {
const char *str, *strn;
do {
- if (_game & GF_SIMON1) {
+ if (getGameType() == GType_SIMON1) {
opcode = READ_BE_UINT16(src);
src += 2;
} else {
@@ -188,9 +188,9 @@ void SimonEngine::dump_video_script(const byte *src, bool one_opcode_only) {
return;
}
- if (_game == GAME_FEEBLEFILES) {
+ if (getGameType() == GType_FF) {
strn = str = feeblefiles_video_opcode_name_table[opcode];
- } else if (_game & GF_SIMON2) {
+ } else if (getGameType() == GType_SIMON2) {
strn = str = simon2_video_opcode_name_table[opcode];
} else {
strn = str = simon1_video_opcode_name_table[opcode];
@@ -200,7 +200,7 @@ void SimonEngine::dump_video_script(const byte *src, bool one_opcode_only) {
strn++;
fprintf(_dumpFile, "%.2d: %s ", opcode, strn + 1);
- int end = (_game == GAME_FEEBLEFILES) ? 9999 : 999;
+ int end = (getGameType() == GType_FF) ? 9999 : 999;
for (; *str != '|'; str++) {
switch (*str) {
case 'x':