aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/director/lingo/lingo.cpp4
-rw-r--r--engines/director/lingo/lingo.h3
-rw-r--r--engines/director/score.cpp2
3 files changed, 9 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index 7296e7496d..b17bb0d388 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -76,6 +76,10 @@ Lingo::Lingo(DirectorEngine *vm) : _vm(vm) {
Lingo::~Lingo() {
}
+void Lingo::addCode(Common::String code, scriptType type, uint16 id) {
+ debug(0, "Add code %s for type %d with id %d", code.c_str(), type, id);
+}
+
void Lingo::processEvent(LEvent event, int entityId) {
if (!_eventHandlerTypes.contains(event))
error("processEvent: Unknown event %d for entity %d", event, entityId);
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h
index 4f7f925c54..f7a25eab32 100644
--- a/engines/director/lingo/lingo.h
+++ b/engines/director/lingo/lingo.h
@@ -29,6 +29,7 @@
#include "audio/audiostream.h"
#include "common/str.h"
#include "engines/director/director.h"
+#include "engines/director/score.h"
namespace Director {
@@ -74,6 +75,8 @@ public:
Lingo(DirectorEngine *vm);
~Lingo();
+ void addCode(Common::String code, scriptType type, uint16 id);
+
void processEvent(LEvent event, int entityId);
int parse(char *code);
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 9639285839..00d12adad6 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -252,6 +252,8 @@ void Score::loadActions(Common::SeekableReadStream &stream) {
}
Common::HashMap<uint16, Common::String>::iterator j;
+ for (j = _actions.begin(); j != _actions.end(); ++j)
+ _lingo->addCode(j->_value, kFrameScript, j->_key);
if (!ConfMan.getBool("dump_scripts"))
return;