DIRECTOR: Lingo: Added stub for Lingo restarting

This commit is contained in:
Eugene Sandulenko 2017-01-16 00:48:35 +01:00
parent 37469a45c4
commit 979560e304
3 changed files with 25 additions and 0 deletions

View File

@ -179,6 +179,8 @@ void Lingo::func_goto(Datum &frame, Datum &movie) {
return;
}
restartLingo();
delete _vm->_currentScore;
Archive *mov = _vm->openMainArchive(*movie.u.s);

View File

@ -306,6 +306,27 @@ void Lingo::processEvent(LEvent event, ScriptType st, int entityId) {
}
}
void Lingo::restartLingo() {
warning("STUB: restartLingo()");
// TODO
//
// reset the following:
// the keyDownScript
// the mouseUpScript
// the mouseDownScript
// the beepOn
// the constraint properties
// the cursor
// the immediate sprite properties
// the puppetSprite
// cursor commands
// custom menus
//
// NOTE:
// tuneousScript is not reset
}
int Lingo::alignTypes(Datum &d1, Datum &d2) {
int opType = INT;

View File

@ -509,6 +509,8 @@ private:
void push(Datum d);
Datum pop(void);
void restartLingo();
Common::HashMap<uint32, const char *> _eventHandlerTypes;
Common::HashMap<Common::String, uint32> _eventHandlerTypeIds;
Common::HashMap<Common::String, Audio::AudioStream *> _audioAliases;