cleanup
svn-id: r7892
This commit is contained in:
parent
f75c148c8c
commit
2efa2e1c67
1 changed files with 11 additions and 33 deletions
|
@ -2250,7 +2250,7 @@ void Scumm_v6::o6_dim() {
|
||||||
nukeArray(fetchScriptWord());
|
nukeArray(fetchScriptWord());
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
error("o6_dim : default case");
|
error("o6_dim: default case");
|
||||||
}
|
}
|
||||||
|
|
||||||
defineArray(fetchScriptWord(), data, 0, pop());
|
defineArray(fetchScriptWord(), data, 0, pop());
|
||||||
|
@ -2347,9 +2347,10 @@ void Scumm_v6::o6_setBlastObjectWindow() {
|
||||||
|
|
||||||
void Scumm_v6::o6_kernelSetFunctions() {
|
void Scumm_v6::o6_kernelSetFunctions() {
|
||||||
int args[30];
|
int args[30];
|
||||||
|
int num;
|
||||||
Actor *a;
|
Actor *a;
|
||||||
|
|
||||||
getStackList(args, ARRAYSIZE(args));
|
num = getStackList(args, ARRAYSIZE(args));
|
||||||
|
|
||||||
if (_features & GF_AFTER_V7) {
|
if (_features & GF_AFTER_V7) {
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
|
@ -2532,6 +2533,9 @@ void Scumm_v6::o6_kernelSetFunctions() {
|
||||||
case 124:
|
case 124:
|
||||||
_saveSound = args[1];
|
_saveSound = args[1];
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
error("o6_kernelSetFunctions: default case %d (paramg count %d)", args[0], num);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
|
@ -2557,41 +2561,32 @@ void Scumm_v6::o6_kernelSetFunctions() {
|
||||||
case 9:
|
case 9:
|
||||||
warning("stub unkMiscOp9()");
|
warning("stub unkMiscOp9()");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 104: /* samnmax */
|
case 104: /* samnmax */
|
||||||
nukeFlObjects(args[2], args[3]);
|
nukeFlObjects(args[2], args[3]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 106:
|
|
||||||
error("stub o6_kernelSetFunctions_106()");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 107: /* set actor scale */
|
case 107: /* set actor scale */
|
||||||
a = derefActor(args[1], "o6_kernelSetFunctions: 107");
|
a = derefActor(args[1], "o6_kernelSetFunctions: 107");
|
||||||
a->scalex = (unsigned char)args[2];
|
a->scalex = (unsigned char)args[2];
|
||||||
a->needBgReset = true;
|
a->needBgReset = true;
|
||||||
a->needRedraw = true;
|
a->needRedraw = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 108: /* create proc_special_palette */
|
case 108: /* create proc_special_palette */
|
||||||
case 109:
|
case 109:
|
||||||
// FIXME: are 108 and 109 really identical?! That seems unlikely.
|
// FIXME: are 108 and 109 really identical?! That seems unlikely.
|
||||||
|
if (num != 6)
|
||||||
|
warning("o6_kernelSetFunctions sub op %d: expected 6 params but got %d", args[0], num);
|
||||||
createSpecialPalette(args[1], args[2], args[3], args[4], args[5], 0, 256);
|
createSpecialPalette(args[1], args[2], args[3], args[4], args[5], 0, 256);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 110:
|
case 110:
|
||||||
gdi.clearUpperMask();
|
gdi.clearUpperMask();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 111:
|
case 111:
|
||||||
a = derefActor(args[1], "o6_kernelSetFunctions: 111");
|
a = derefActor(args[1], "o6_kernelSetFunctions: 111");
|
||||||
a->shadow_mode = args[2] + args[3];
|
a->shadow_mode = args[2] + args[3];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 112: /* palette shift? */
|
case 112: /* palette shift? */
|
||||||
createSpecialPalette(args[1], args[2], args[3], args[4], args[5], args[6], args[7]);
|
createSpecialPalette(args[1], args[2], args[3], args[4], args[5], args[6], args[7]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 114:
|
case 114:
|
||||||
// Sam & Max film noir mode
|
// Sam & Max film noir mode
|
||||||
if (_gameId == GID_SAMNMAX) {
|
if (_gameId == GID_SAMNMAX) {
|
||||||
|
@ -2609,45 +2604,28 @@ void Scumm_v6::o6_kernelSetFunctions() {
|
||||||
} else
|
} else
|
||||||
warning("stub o6_kernelSetFunctions_114()");
|
warning("stub o6_kernelSetFunctions_114()");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 117:
|
case 117:
|
||||||
warning("stub o6_kernelSetFunctions_117()");
|
warning("stub o6_kernelSetFunctions_117()");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 118:
|
|
||||||
error("stub o6_kernelSetFunctions_118(%d,%d,%d,%d,%d,%d,%d)",
|
|
||||||
args[1], args[2], args[3], args[4], args[5], args[6], args[7]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 119:
|
case 119:
|
||||||
enqueueObject(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], 0);
|
enqueueObject(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], 0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 120:
|
case 120:
|
||||||
swapPalColors(args[1], args[2]);
|
swapPalColors(args[1], args[2]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 121:
|
|
||||||
error("stub o6_kernelSetFunctions_121(%d)", args[1]);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 122:
|
case 122:
|
||||||
|
|
||||||
VAR(VAR_SOUNDRESULT) =
|
VAR(VAR_SOUNDRESULT) =
|
||||||
(short)_imuse->doCommand(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
(short)_imuse->doCommand(args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 123:
|
case 123:
|
||||||
copyPalColor(args[2], args[1]);
|
copyPalColor(args[2], args[1]);
|
||||||
break;
|
break;
|
||||||
|
case 124:
|
||||||
case 124: /* samnmax */
|
|
||||||
// warning("o6_kernelSetFunctions: _saveSound=%d", args[1]);
|
|
||||||
_saveSound = args[1];
|
_saveSound = args[1];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
error("o6_kernelSetFunctions: default case %d", args[0]);
|
error("o6_kernelSetFunctions: default case %d (paramg count %d)", args[0], num);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue