aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorFilippos Karapetis2008-04-24 14:39:01 +0000
committerFilippos Karapetis2008-04-24 14:39:01 +0000
commit9c4b451e1a16614d798fbf7a682766b7c774bd85 (patch)
tree0bdb35109d111b905c025738de1427562812b61d /engines/made
parent00e652f8e42f41963dc128441d5583e4a4940e9a (diff)
downloadscummvm-rg350-9c4b451e1a16614d798fbf7a682766b7c774bd85.tar.gz
scummvm-rg350-9c4b451e1a16614d798fbf7a682766b7c774bd85.tar.bz2
scummvm-rg350-9c4b451e1a16614d798fbf7a682766b7c774bd85.zip
Unimplemented commands and opcodes throw a warning now
svn-id: r31693
Diffstat (limited to 'engines/made')
-rw-r--r--engines/made/script.cpp40
-rw-r--r--engines/made/scriptfuncs.cpp86
2 files changed, 77 insertions, 49 deletions
diff --git a/engines/made/script.cpp b/engines/made/script.cpp
index 1f5518c685..579abab7c3 100644
--- a/engines/made/script.cpp
+++ b/engines/made/script.cpp
@@ -514,7 +514,7 @@ void ScriptInterpreter::cmd_vsize() {
}
void ScriptInterpreter::cmd_exit() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_exit");
}
void ScriptInterpreter::cmd_return() {
@@ -548,33 +548,32 @@ void ScriptInterpreter::cmd_call() {
}
void ScriptInterpreter::cmd_svar() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_svar");
}
void ScriptInterpreter::cmd_sset() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_sset");
}
void ScriptInterpreter::cmd_split() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_split");
}
void ScriptInterpreter::cmd_snlit() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_snlit");
}
void ScriptInterpreter::cmd_yorn() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_yorn");
}
void ScriptInterpreter::cmd_save() {
- //fflush(stdout); g_system->delayMillis(5000);
- // TODO
+ warning("Unimplemented command: cmd_save");
_stack.setTop(0);
}
void ScriptInterpreter::cmd_restore() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_restore");
}
void ScriptInterpreter::cmd_arg() {
@@ -608,26 +607,27 @@ void ScriptInterpreter::cmd_tspace() {
}
void ScriptInterpreter::cmd_class() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_class");
}
void ScriptInterpreter::cmd_objectp() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_objectp");
}
void ScriptInterpreter::cmd_vectorp() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_vectorp");
}
void ScriptInterpreter::cmd_restart() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_restart");
}
void ScriptInterpreter::cmd_rand() {
- //fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_rand");
}
void ScriptInterpreter::cmd_randomize() {
+ warning("Unimplemented command: cmd_randomize");
// TODO
_stack.setTop(0);
}
@@ -696,19 +696,19 @@ void ScriptInterpreter::cmd_extend() {
}
void ScriptInterpreter::cmd_catch() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_catch");
}
void ScriptInterpreter::cmd_cdone() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_cdone");
}
void ScriptInterpreter::cmd_throw() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_throw");
}
void ScriptInterpreter::cmd_functionp() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_functionp");
}
void ScriptInterpreter::cmd_le() {
@@ -728,11 +728,11 @@ void ScriptInterpreter::cmd_ge() {
}
void ScriptInterpreter::cmd_varx() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_varx");
}
void ScriptInterpreter::cmd_setx() {
- fflush(stdout); g_system->delayMillis(5000);
+ warning("Unimplemented command: cmd_setx");
}
} // End of namespace Made
diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp
index 5dd64b6ded..57b0d57118 100644
--- a/engines/made/scriptfuncs.cpp
+++ b/engines/made/scriptfuncs.cpp
@@ -165,14 +165,17 @@ void ScriptFunctionsRtz::setupExternalsTable() {
#undef External
int16 ScriptFunctionsRtz::o1_SYSTEM(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_SYSTEM");
return 0;
}
int16 ScriptFunctionsRtz::o1_INITGRAF(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_INITGRAF");
return 0;
}
int16 ScriptFunctionsRtz::o1_RESTOREGRAF(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_RESTOREGRAF");
return 0;
}
@@ -313,6 +316,7 @@ int16 ScriptFunctionsRtz::o1_ISMUS(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_TEXTPOS(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_TEXTPOS");
return 0;
}
@@ -322,18 +326,22 @@ int16 ScriptFunctionsRtz::o1_FLASH(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_PLAYNOTE(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_PLAYNOTE");
return 0;
}
int16 ScriptFunctionsRtz::o1_STOPNOTE(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_STOPNOTE");
return 0;
}
int16 ScriptFunctionsRtz::o1_PLAYTELE(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_PLAYTELE");
return 0;
}
int16 ScriptFunctionsRtz::o1_STOPTELE(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_STOPTELE");
return 0;
}
@@ -348,6 +356,7 @@ int16 ScriptFunctionsRtz::o1_SHOWCURS(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_MUSICBEAT(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_MUSICBEAT");
return 0;
}
@@ -357,8 +366,8 @@ int16 ScriptFunctionsRtz::o1_SCREENLOCK(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_ADDSPRITE(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_ADDSPRITE");
//_vm->_screen->addSprite(argv[0]);
- g_system->delayMillis(5000);
return 0;
}
@@ -368,7 +377,7 @@ int16 ScriptFunctionsRtz::o1_FREEANIM(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_DRAWSPRITE(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_DRAWSPRITE");
return 0;
}
@@ -412,35 +421,42 @@ int16 ScriptFunctionsRtz::o1_PALETTELOCK(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_FONT(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_FONT");
return 0;
}
int16 ScriptFunctionsRtz::o1_DRAWTEXT(int16 argc, int16 *argv) {
- //g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_DRAWTEXT");
return 0;
}
int16 ScriptFunctionsRtz::o1_HOMETEXT(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_HOMETEXT");
return 0;
}
int16 ScriptFunctionsRtz::o1_TEXTRECT(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_TEXTRECT");
return 0;
}
int16 ScriptFunctionsRtz::o1_TEXTXY(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_TEXTXY");
return 0;
}
int16 ScriptFunctionsRtz::o1_DROPSHADOW(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_DROPSHADOW");
return 0;
}
int16 ScriptFunctionsRtz::o1_TEXTCOLOR(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_TEXTCOLOR");
return 0;
}
int16 ScriptFunctionsRtz::o1_OUTLINE(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_OUTLINE");
return 0;
}
@@ -459,10 +475,12 @@ int16 ScriptFunctionsRtz::o1_SETGROUND(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_RESTEXT(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_RESTEXT");
return 0;
}
int16 ScriptFunctionsRtz::o1_CLIPAREA(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_CLIPAREA");
return 0;
}
@@ -494,57 +512,70 @@ int16 ScriptFunctionsRtz::o1_PLAYVOICE(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_CDPLAY(int16 argc, int16 *argv) {
+ // This one is called loads of times, so it has been commented out to reduce spam
+ //warning("Unimplemented opcode: o1_CDPLAY");
return 0;
}
int16 ScriptFunctionsRtz::o1_STOPCD(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_STOPCD");
return 0;
}
int16 ScriptFunctionsRtz::o1_CDSTATUS(int16 argc, int16 *argv) {
+ // This one is called loads of times, so it has been commented out to reduce spam
+ //warning("Unimplemented opcode: o1_CDSTATUS");
return 0;
}
int16 ScriptFunctionsRtz::o1_CDTIME(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_CDTIME");
return 0;
}
int16 ScriptFunctionsRtz::o1_CDPLAYSEG(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_CDPLAYSEG");
return 0;
}
int16 ScriptFunctionsRtz::o1_PRINTF(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_PRINTF");
return 0;
}
int16 ScriptFunctionsRtz::o1_MONOCLS(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_MONOCLS");
return 0;
}
int16 ScriptFunctionsRtz::o1_SNDENERGY(int16 argc, int16 *argv) {
+ // This is called while in-game voices are played
+ // Not sure what it's used for
+ // Commented out to reduce spam
+ //warning("Unimplemented opcode: o1_SNDENERGY");
return 0;
}
int16 ScriptFunctionsRtz::o1_CLEARTEXT(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_CLEARTEXT");
return 0;
}
int16 ScriptFunctionsRtz::o1_ANIMTEXT(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_ANIMTEXT");
return 0;
}
int16 ScriptFunctionsRtz::o1_TEXTWIDTH(int16 argc, int16 *argv) {
Object *obj = _vm->_dat->getObject(argv[1]);
const char *text = obj->getString();
- debug(4, "text = %s\n", text); fflush(stdout);
- //!!g_system->delayMillis(5000);
+ debug(4, "text = %s\n", text);
+ // TODO
return 0;
}
int16 ScriptFunctionsRtz::o1_PLAYMOVIE(int16 argc, int16 *argv) {
const char *movieName = _vm->_dat->getObject(argv[1])->getString();
- printf("movieName = %s\n", movieName); fflush(stdout);
_vm->_pmvPlayer->play(movieName);
return 0;
}
@@ -577,10 +608,12 @@ int16 ScriptFunctionsRtz::o1_LOADPIC(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_MUSICVOL(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_MUSICVOL");
return 0;
}
int16 ScriptFunctionsRtz::o1_RESTARTEVENTS(int16 argc, int16 *argv) {
+ warning("Unimplemented opcode: o1_RESTARTEVENTS");
return 0;
}
@@ -610,17 +643,17 @@ int16 ScriptFunctionsRtz::o1_SETSTATE(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_SETLOCATION(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_SETLOCATION");
return 0;
}
int16 ScriptFunctionsRtz::o1_SETCONTENT(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_SETCONTENT");
return 0;
}
int16 ScriptFunctionsRtz::o1_EXCLUDEAREA(int16 argc, int16 *argv) {
- //!! g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_EXCLUDEAREA");
return 0;
}
@@ -630,15 +663,11 @@ int16 ScriptFunctionsRtz::o1_SETEXCLUDE(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_GETSTATE(int16 argc, int16 *argv) {
- int16 state = _vm->_screen->getChannelState(argv[0]);
- return state;
+ return _vm->_screen->getChannelState(argv[0]);
}
int16 ScriptFunctionsRtz::o1_PLACEANIM(int16 argc, int16 *argv) {
- printf("anim = %04X\n", argv[3]); fflush(stdout);
- int16 channel = _vm->_screen->placeAnim(argv[4], argv[3], argv[2], argv[1], argv[0]);
- //g_system->delayMillis(5000);
- return channel;
+ return _vm->_screen->placeAnim(argv[4], argv[3], argv[2], argv[1], argv[0]);
}
int16 ScriptFunctionsRtz::o1_SETFRAME(int16 argc, int16 *argv) {
@@ -683,22 +712,21 @@ int16 ScriptFunctionsRtz::o1_SOUNDRATE(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_DRAWANIMPIC(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_DRAWANIMPIC");
return 0;
}
int16 ScriptFunctionsRtz::o1_LOADANIM(int16 argc, int16 *argv) {
- //g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_LOADANIM");
return 0;
}
int16 ScriptFunctionsRtz::o1_READTEXT(int16 argc, int16 *argv) {
- //g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_READTEXT");
return 0;
}
int16 ScriptFunctionsRtz::o1_READMENU(int16 argc, int16 *argv) {
-
int16 objectIndex = argv[2];
int16 menuIndex = argv[1];
int16 textIndex = argv[0];
@@ -715,37 +743,37 @@ int16 ScriptFunctionsRtz::o1_READMENU(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_DRAWMENU(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_DRAWMENU");
return 0;
}
int16 ScriptFunctionsRtz::o1_MENUCOUNT(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_MENUCOUNT");
return 0;
}
int16 ScriptFunctionsRtz::o1_SAVEGAME(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_SAVEGAME");
return 0;
}
int16 ScriptFunctionsRtz::o1_LOADGAME(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_LOADGAME");
return 0;
}
int16 ScriptFunctionsRtz::o1_GAMENAME(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_GAMENAME");
return 0;
}
int16 ScriptFunctionsRtz::o1_SHAKESCREEN(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_SHAKESCREEN");
return 0;
}
int16 ScriptFunctionsRtz::o1_PLACEMENU(int16 argc, int16 *argv) {
- g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_PLACEMENU");
return 0;
}
@@ -756,12 +784,12 @@ int16 ScriptFunctionsRtz::o1_SETVOLUME(int16 argc, int16 *argv) {
}
int16 ScriptFunctionsRtz::o1_WHATSYNTH(int16 argc, int16 *argv) {
- //g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_WHATSYNTH");
return 0;
}
int16 ScriptFunctionsRtz::o1_SLOWSYSTEM(int16 argc, int16 *argv) {
- //!! g_system->delayMillis(5000);
+ warning("Unimplemented opcode: o1_SLOWSYSTEM");
return 0;
}