Additions for funshop titles.

svn-id: r17942
This commit is contained in:
Travis Howell 2005-05-07 11:07:45 +00:00
parent 873c10c16b
commit c4d2ac0eb7
4 changed files with 48 additions and 1 deletions

View File

@ -2348,6 +2348,7 @@ void ScummEngine_v100he::o100_getSpriteGroupInfo() {
} }
void ScummEngine_v100he::o100_getWizData() { void ScummEngine_v100he::o100_getWizData() {
byte filename[4096];
int state, resId; int state, resId;
int32 w, h; int32 w, h;
int16 x, y; int16 x, y;
@ -2407,6 +2408,7 @@ void ScummEngine_v100he::o100_getWizData() {
break; break;
case 111: case 111:
pop(); pop();
copyScriptString(filename, sizeof(filename));
pop(); pop();
push(0); push(0);
warning("o100_getWizData() case 111 unhandled"); warning("o100_getWizData() case 111 unhandled");

View File

@ -1742,7 +1742,7 @@ void ScummEngine_v72he::o72_openFile() {
debug(0,"Final filename to %s", filename + r); debug(0,"Final filename to %s", filename + r);
slot = -1; slot = -1;
for (i = 0; i < 17; i++) { for (i = 1; i < 17; i++) {
if (_hFileTable[i].isOpen() == false) { if (_hFileTable[i].isOpen() == false) {
slot = i; slot = i;
break; break;

View File

@ -733,11 +733,36 @@ void ScummEngine_v90he::o90_wizImageOps() {
_wizParams.processFlags |= kWPFDstResNum; _wizParams.processFlags |= kWPFDstResNum;
_wizParams.dstResNum = pop(); _wizParams.dstResNum = pop();
break; break;
case 93: // HE99+
_wizParams.processFlags |= 0x100000;
_wizParams.field_180 = pop();
_wizParams.field_184 = pop();
break;
case 95: // HE99+
_wizParams.processMode = 13;
break;
case 96: // HE99+
_wizParams.field_239D = pop();
_wizParams.field_2399 = pop();
_wizParams.field_23A5 = pop();
_wizParams.field_23A1 = pop();
copyScriptString(_wizParams.string2, sizeof(_wizParams.string2));
_wizParams.processMode = 15;
break;
case 97: // HE99+
_wizParams.processMode = 16;
_wizParams.field_23AD = pop();
_wizParams.field_23A9 = pop();
copyScriptString(_wizParams.string1, sizeof(_wizParams.string1));
break;
case 108: case 108:
_wizParams.processFlags |= kWPFSetPos; _wizParams.processFlags |= kWPFSetPos;
_wizParams.img.y1 = pop(); _wizParams.img.y1 = pop();
_wizParams.img.x1 = pop(); _wizParams.img.x1 = pop();
break; break;
case 150: // HE99+
_wizParams.processMode = 14;
break;
case 171: // HE99+ case 171: // HE99+
_wizParams.processMode = 8; _wizParams.processMode = 8;
break; break;
@ -1625,6 +1650,7 @@ void ScummEngine_v90he::o90_setSpriteGroupInfo() {
} }
void ScummEngine_v90he::o90_getWizData() { void ScummEngine_v90he::o90_getWizData() {
byte filename[4096];
int state, resId; int state, resId;
int32 w, h; int32 w, h;
int16 x, y; int16 x, y;
@ -1694,6 +1720,13 @@ void ScummEngine_v90he::o90_getWizData() {
pop(); pop();
push(0); push(0);
break; break;
case 111:
pop();
copyScriptString(filename, sizeof(filename));
pop();
push(0);
warning("o90_getWizData() case 111 unhandled");
break;
default: default:
error("o90_getWizData: Unknown case %d", subOp); error("o90_getWizData: Unknown case %d", subOp);
} }

View File

@ -1818,6 +1818,18 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) {
case 10: case 10:
fillWizParallelogram(params); fillWizParallelogram(params);
break; break;
case 13:
// Used in SamsFunShop
// Start font
break;
case 14:
// Used in SamsFunShop
// End font
break;
case 15:
// Used in SamsFunShop
// Create font
break;
default: default:
error("Unhandled processWizImage mode %d", params->processMode); error("Unhandled processWizImage mode %d", params->processMode);
} }