aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Percival2018-07-29 11:53:35 +0800
committerEugene Sandulenko2019-11-17 22:31:54 +0100
commita9d863aa195b9c7d8ed2474ad2abb99c20993750 (patch)
tree0149cf8cca87e66c43d687210eb1c7e5f1f2a8dc
parent19a9b380839a56906dfaaea2e13795bf0d0aa8e4 (diff)
downloadscummvm-rg350-a9d863aa195b9c7d8ed2474ad2abb99c20993750.tar.gz
scummvm-rg350-a9d863aa195b9c7d8ed2474ad2abb99c20993750.tar.bz2
scummvm-rg350-a9d863aa195b9c7d8ed2474ad2abb99c20993750.zip
DIRECTOR: Add more debug stubs
-rw-r--r--engines/director/lingo/lingo-events.cpp8
-rw-r--r--engines/director/score.cpp30
2 files changed, 34 insertions, 4 deletions
diff --git a/engines/director/lingo/lingo-events.cpp b/engines/director/lingo/lingo-events.cpp
index d5a626aad2..f3bf59b307 100644
--- a/engines/director/lingo/lingo-events.cpp
+++ b/engines/director/lingo/lingo-events.cpp
@@ -190,9 +190,9 @@ void Lingo::runMovieScript(LEvent event) {
*/
for (uint i = 0; i < _scripts[kMovieScript].size(); i++) {
- // processEvent(event,
- // kMovieScript,
- // ?);
+ processEvent(event,
+ kMovieScript,
+ i);
// TODO: How do know which script handles the message?
}
debugC(3, kDebugLingoExec, "STUB: processEvent(event, kMovieScript, ?)");
@@ -306,7 +306,7 @@ void Lingo::processEvent(LEvent event, ScriptType st, int entityId) {
executeScript(st, entityId); // D3 list of scripts.
} else {
- //debugC(3, kDebugLingoExec, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId);
+ debugC(3, kDebugLingoExec, "STUB: processEvent(%s) for %d", _eventHandlerTypes[event], entityId);
}
}
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 33e48f239f..9d16267ce2 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -597,28 +597,33 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
for (uint child = 0; child < res->children.size(); child++)
_loadedBitmaps->getVal(id)->children.push_back(res->children[child]);
_castTypes[id] = kCastBitmap;
+ debugC(3, kDebugLoading, "Score::loadCastData(): loaded kCastBitmap (%d)", res->children.size());
break;
case kCastText:
_loadedText->setVal(id, new TextCast(castStream, _vm->getVersion()));
for (uint child = 0; child < res->children.size(); child++)
_loadedText->getVal(id)->children.push_back(res->children[child]);
_castTypes[id] = kCastText;
+ debugC(3, kDebugLoading, "Score::loadCastData(): loaded kCastText (%d)", res->children.size());
break;
case kCastShape:
_loadedShapes->setVal(id, new ShapeCast(castStream, _vm->getVersion()));
for (uint child = 0; child < res->children.size(); child++)
_loadedShapes->getVal(id)->children.push_back(res->children[child]);
_castTypes[id] = kCastShape;
+ debugC(3, kDebugLoading, "Score::loadCastData(): loaded kCastShape (%d)", res->children.size());
break;
case kCastButton:
_loadedButtons->setVal(id, new ButtonCast(castStream, _vm->getVersion()));
for (uint child = 0; child < res->children.size(); child++)
_loadedButtons->getVal(id)->children.push_back(res->children[child]);
_castTypes[id] = kCastButton;
+ debugC(3, kDebugLoading, "Score::loadCastData(): loaded kCastButton (%d)", res->children.size());
break;
case kCastLingoScript:
_loadedScripts->setVal(id, new ScriptCast(castStream, _vm->getVersion()));
_castTypes[id] = kCastLingoScript;
+ debugC(3, kDebugLoading, "Score::loadCastData(): loaded kCastLingoScript");
break;
case kCastRTE:
//TODO: Actually load RTEs correctly, don't just make fake STXT.
@@ -635,6 +640,31 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
_loadedText->getVal(id)->importRTE(buffer);
}
}
+ debugC(3, kDebugLoading, "Score::loadCastData(): loaded kCastRTE (%d)", res->children.size());
+ break;
+ case kCastFilmLoop:
+ warning("STUB: Score::loadCastData(): kCastFilmLoop (%d)", res->children.size());
+ size2 = 0;
+ break;
+ case kCastPalette:
+ warning("STUB: Score::loadCastData(): kCastPalette (%d)", res->children.size());
+ size2 = 0;
+ break;
+ case kCastPicture:
+ warning("STUB: Score::loadCastData(): kCastPicture (%d)", res->children.size());
+ size2 = 0;
+ break;
+ case kCastSound:
+ warning("STUB: Score::loadCastData(): kCastSound (%d)", res->children.size());
+ size2 = 0;
+ break;
+ case kCastMovie:
+ warning("STUB: Score::loadCastData(): kCastMovie (%d)", res->children.size());
+ size2 = 0;
+ break;
+ case kCastDigitalVideo:
+ warning("STUB: Score::loadCastData(): kCastDigitalVideo (%d)", res->children.size());
+ size2 = 0;
break;
default:
warning("Score::loadCastData(): Unhandled cast type: %d [%s]", castType, tag2str(castType));