Add stub for HE o6_quitPauseRestart.

svn-id: r13908
This commit is contained in:
Eugene Sandulenko 2004-05-31 08:44:04 +00:00
parent 50b39e3095
commit f3014b9f4c
2 changed files with 34 additions and 0 deletions

View File

@ -596,6 +596,7 @@ protected:
void o6_unknownF9();
void o6_unknownFB();
void o6_readFilePos();
void o6_quitPauseRestart();
};
class ScummEngine_v7he : public ScummEngine_v6he {

View File

@ -1475,4 +1475,37 @@ void ScummEngine_v6he::decodeParseString(int m, int n) {
}
}
void ScummEngine_v6he::o6_quitPauseRestart() {
byte subOp = fetchScriptByte();
int par1;
if (_heversion == 60)
if (subOp != 158 && subOp != 160)
error("o6_quitPauseRestart invalid case %d", subOp);
switch (subOp & 0xff) {
case 158: // SO_RESTART
restart();
break;
case 160: // SO_QUIT
shutDown();
break;
case 250:
par1 = pop();
warning("stub: o6_quitPauseRestart subOpcode %d", subOp);
break;
case 253:
par1 = pop();
warning("stub: o6_quitPauseRestart subOpcode %d", subOp);
case 244:
case 251:
case 252:
warning("stub: o6_quitPauseRestart subOpcode %d", subOp);
break;
default:
error("o6_quitPauseRestart invalid case %d", subOp);
}
}
} // End of namespace Scumm