stub opcode E0 which makes moondemo and fbdemo start yay

svn-id: r6624
This commit is contained in:
Jonathan Gray 2003-02-18 23:59:54 +00:00
parent 719784dd6a
commit 5c0cfe392b
2 changed files with 19 additions and 1 deletions

View File

@ -374,6 +374,7 @@ protected:
void o6_findAllObjects();
void o6_pickVarRandom();
void o6_getDateTime();
void o6_unknownE0();
byte VAR_VIDEONAME;

View File

@ -324,7 +324,7 @@ void Scumm_v6::setupOpcodes()
OPCODE(o6_deleteFile),
OPCODE(o6_invalid),
/* E0 */
OPCODE(o6_invalid),
OPCODE(o6_unknownE0),
OPCODE(o6_invalid),
OPCODE(o6_invalid),
OPCODE(o6_pickVarRandom),
@ -2982,6 +2982,23 @@ void Scumm_v6::o6_getDateTime()
_vars[VAR_TIMEDATE_SECOND] = t->tm_sec;
}
void Scumm_v6::o6_unknownE0() {
int a = fetchScriptByte();
warning("o6_unknownEO(%d) stub", a);
a -= 222;
if (a != 0) {
a--;
a--;
if (a != 0) {
return;
}
pop();
return;
}
pop();
return;
}
void Scumm_v6::decodeParseString(int m, int n)
{
byte b;