diff options
author | Alyssa Milburn | 2011-11-26 20:48:16 +0100 |
---|---|---|
committer | Alyssa Milburn | 2011-11-26 20:49:02 +0100 |
commit | 285a92ffaafe4e34ef37607e86aa54a3b382475e (patch) | |
tree | fdec4774f9b1337bfd5b803919808ed9b53e51c0 /engines/mohawk/livingbooks.cpp | |
parent | 4466b6556a57bd9e43f0690203cfdd0ccdfa2e04 (diff) | |
download | scummvm-rg350-285a92ffaafe4e34ef37607e86aa54a3b382475e.tar.gz scummvm-rg350-285a92ffaafe4e34ef37607e86aa54a3b382475e.tar.bz2 scummvm-rg350-285a92ffaafe4e34ef37607e86aa54a3b382475e.zip |
MOHAWK: Handle globals from the LB book info file.
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index e8232f2583..08b67deb2a 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -307,8 +307,9 @@ void MohawkEngine_LivingBooks::loadBookInfo(const Common::String &filename) { const Common::ConfigFile::SectionKeyList globals = _bookInfoFile.getKeys("Globals"); for (Common::ConfigFile::SectionKeyList::const_iterator i = globals.begin(); i != globals.end(); i++) { Common::String command = Common::String::format("%s = %s", i->key.c_str(), i->value.c_str()); - debug("global: %s", command.c_str()); - // TODO: run command + LBCode tempCode(this, 0); + uint offset = tempCode.parseCode(command); + tempCode.runCode(NULL, offset); } } } |