Add better check for HE resource differences.

Move stringLen to HE7.

svn-id: r13130
This commit is contained in:
Travis Howell 2004-03-02 01:20:18 +00:00
parent 4accb5b006
commit 5a3b17de54
6 changed files with 30 additions and 34 deletions

View file

@ -344,7 +344,7 @@ void ScummEngine_v6he::setupOpcodes() {
/* EC */
OPCODE(o6_invalid),
OPCODE(o6_invalid),
OPCODE(o6_stringLen),
OPCODE(o6_invalid),
OPCODE(o6_invalid),
/* F0 */
OPCODE(o6_invalid),
@ -1244,24 +1244,6 @@ void ScummEngine_v6he::redimArray(int arrayId, int newX, int newY, int type) {
ah->dim2 = TO_LE_16(newX + 1);
}
// TODO: It's Win32 specific
void ScummEngine_v6he::o6_stringLen() {
int a, len;
if (_features & GF_PC) {
o6_invalid();
}
a = pop();
if (_gameId == GID_FREDDEMO) {
len = strlen((char *)getStringAddress(a));
} else {
len = 0; // TODO: implement
}
push(len);
}
void ScummEngine_v6he::o6_readINI() {
int len;