aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v7he.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2004-06-03 01:28:22 +0000
committerEugene Sandulenko2004-06-03 01:28:22 +0000
commit6be8956d2c253770ee1001838cd9d7019a58a5fc (patch)
tree53e01bea252e071a1e9d1c28587435bec58315bf /scumm/script_v7he.cpp
parent2a34b9d5a1f7573621a0e3c352e790f8a102859c (diff)
downloadscummvm-rg350-6be8956d2c253770ee1001838cd9d7019a58a5fc.tar.gz
scummvm-rg350-6be8956d2c253770ee1001838cd9d7019a58a5fc.tar.bz2
scummvm-rg350-6be8956d2c253770ee1001838cd9d7019a58a5fc.zip
Phase 2 of switching HE to use _heversion. Now unneeded GID's are
eliminated. svn-id: r13927
Diffstat (limited to 'scumm/script_v7he.cpp')
-rw-r--r--scumm/script_v7he.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index f150895f0b..896240e4cb 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -40,6 +40,12 @@
namespace Scumm {
+// Compatibility notes:
+//
+// FREDDEMO (freddemo)
+// stringLen is completely different
+// unknownF4 is completely different
+
#define OPCODE(x) { &ScummEngine_v7he::x, #x }
void ScummEngine_v7he::setupOpcodes() {
@@ -426,7 +432,7 @@ void ScummEngine_v7he::o7_stringLen() {
return;
}
- if (_heversion >= 60) {
+ if (_gameId == GID_FREDDEMO) {
len = strlen((char *)getStringAddress(a));
} else { // FREDDI, PUTTMOON
len = stringLen(addr);
@@ -473,7 +479,7 @@ void ScummEngine_v7he::o7_readINI() {
}
void ScummEngine_v7he::o7_unknownF4() {
- if (_heversion >= 60) {
+ if (_gameId == GID_FREDDEMO) {
byte b;
int len;
b = fetchScriptByte();