mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 03:24:50 +00:00
Changes for mustard
svn-id: r15503
This commit is contained in:
parent
c35a093f96
commit
c8dc1483ac
@ -881,6 +881,7 @@ protected:
|
||||
void o90_startScriptUnk();
|
||||
void o90_jumpToScriptUnk();
|
||||
void o90_wizImageOps();
|
||||
void o90_unknown24();
|
||||
void o90_unknown25();
|
||||
void o90_unknown26();
|
||||
void o90_unknown27();
|
||||
|
@ -1929,8 +1929,11 @@ void ScummEngine_v72he::o72_openFile() {
|
||||
mode = pop();
|
||||
copyScriptString(filename);
|
||||
|
||||
// HACK bb2demo uses incorrect filename
|
||||
if (!strcmp((char *)filename,".HE9")) {
|
||||
// HACK Correct incorrect filenames
|
||||
if (!strcmp((char *)filename,".he7")) {
|
||||
memset(filename, 0, sizeof(filename));
|
||||
sprintf((char *)filename, "%s.he7", _gameName.c_str());
|
||||
} else if (!strcmp((char *)filename,".HE9")) {
|
||||
memset(filename, 0, sizeof(filename));
|
||||
sprintf((char *)filename, "%s.he9", _gameName.c_str());
|
||||
}
|
||||
@ -2324,7 +2327,8 @@ void ScummEngine_v72he::o72_unknownF1() {
|
||||
i++;
|
||||
}
|
||||
|
||||
push (i);
|
||||
int r = (i) ? 1 : -1;
|
||||
push (r);
|
||||
debug(1,"o70_unknownF1 stub (%d, %d, %d)", id, id2, i);
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ void ScummEngine_v90he::setupOpcodes() {
|
||||
OPCODE(o90_atan2),
|
||||
OPCODE(o90_getSegmentAngle),
|
||||
/* 24 */
|
||||
OPCODE(o6_invalid),
|
||||
OPCODE(o90_unknown24),
|
||||
OPCODE(o90_unknown25),
|
||||
OPCODE(o90_unknown26),
|
||||
OPCODE(o90_unknown27),
|
||||
@ -823,6 +823,31 @@ void ScummEngine_v90he::o90_wizImageOps() {
|
||||
debug(1,"o90_wizImageOps stub (%d)", subOp);
|
||||
}
|
||||
|
||||
void ScummEngine_v90he::o90_unknown24() {
|
||||
byte subOp = fetchScriptByte();
|
||||
|
||||
switch (subOp) {
|
||||
case 28:
|
||||
pop();
|
||||
pop();
|
||||
pop();
|
||||
pop();
|
||||
break;
|
||||
case 29:
|
||||
pop();
|
||||
pop();
|
||||
pop();
|
||||
pop();
|
||||
pop();
|
||||
pop();
|
||||
break;
|
||||
default:
|
||||
error("o90_unknown24: Unknown case %d", subOp);
|
||||
}
|
||||
push(0);
|
||||
debug(1,"o90_unknown24 stub (%d)", subOp);
|
||||
}
|
||||
|
||||
void ScummEngine_v90he::o90_unknown25() {
|
||||
int args[16];
|
||||
byte subOp = fetchScriptByte();
|
||||
@ -1001,10 +1026,13 @@ void ScummEngine_v90he::o90_unknown26() {
|
||||
case 91:
|
||||
getStackList(args, ARRAYSIZE(args));
|
||||
break;
|
||||
case 105: // HE99+
|
||||
case 105: // HE 99+
|
||||
pop();
|
||||
pop();
|
||||
break;
|
||||
case 106: // HE 99+
|
||||
pop();
|
||||
break;
|
||||
case 124:
|
||||
break;
|
||||
case 164:
|
||||
@ -1059,6 +1087,10 @@ void ScummEngine_v90he::o90_unknown28() {
|
||||
subOp -= 37;
|
||||
|
||||
switch (subOp) {
|
||||
case 5:
|
||||
pop();
|
||||
pop();
|
||||
break;
|
||||
case 6:
|
||||
pop();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user