aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Iskrich2016-06-14 20:03:19 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commit82daeb9e62edb0901fe5b7dfb3f7197611fb7012 (patch)
tree04d4adb60a30c0192a03429e1840d27525f47d6a
parentbd05d98fa5a60b10831d0356d93a6c22755ddf5e (diff)
downloadscummvm-rg350-82daeb9e62edb0901fe5b7dfb3f7197611fb7012.tar.gz
scummvm-rg350-82daeb9e62edb0901fe5b7dfb3f7197611fb7012.tar.bz2
scummvm-rg350-82daeb9e62edb0901fe5b7dfb3f7197611fb7012.zip
DIRECTOR: Add stub for storage code
-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;