From fa755b3729ec27a387ae50aca582bdf6bcaf9a9f Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 13 Jan 2009 21:08:22 +0000 Subject: Some updates/observations on script functions svn-id: r35850 --- engines/made/scriptfuncs.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'engines/made') diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp index f627ff7de0..3f9d757cc4 100644 --- a/engines/made/scriptfuncs.cpp +++ b/engines/made/scriptfuncs.cpp @@ -475,8 +475,8 @@ int16 ScriptFunctions::sfSetTextRect(int16 argc, int16 *argv) { int16 y1 = CLIP(argv[3], 1, 198); int16 x2 = CLIP(argv[2], 1, 318); int16 y2 = CLIP(argv[1], 1, 198); - //int16 textValue = argv[0]; - // TODO: textValue + //int16 textValue = argv[0]; // looks to be unused + _vm->_screen->setTextRect(Common::Rect(x1, y1, x2, y2)); return 0; } @@ -939,9 +939,9 @@ int16 ScriptFunctions::sfGetSynthType(int16 argc, int16 *argv) { // 3 = ADLIBG // 4 = MT32MPU - // TODO + // There doesn't seem to be any difference in the music no matter what this returns - warning("Unimplemented opcode: sfGetSynthType"); + //warning("Unimplemented opcode: sfGetSynthType"); return 0; } @@ -949,6 +949,9 @@ int16 ScriptFunctions::sfIsSlowSystem(int16 argc, int16 *argv) { //warning("Unimplemented opcode: sfIsSlowSystem"); // NOTE: In the original engine this value is set via a command-line parameter // I don't think it's needed here + // Update: I believe this is used to determine which version of the intro/ending to show + // There are 2 versions of each video: one with sound, and one without + // An example is FINTRO00.PMV (with sound) and FINTRO01.PMV (without sound) // One could maybe think about returning 1 here on actually slower systems. return 0; } -- cgit v1.2.3