diff options
author | Ľubomír Remák | 2018-03-22 16:08:14 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | 63c0dac9613caef3778a4cb9765bb8b628e5a1c2 (patch) | |
tree | de47fa3b7282dc163d06b51a47cbd1d3f0a868be /engines/mutationofjb/script.cpp | |
parent | 3928c52c0ee2a930431a807d0b4262440ab75725 (diff) | |
download | scummvm-rg350-63c0dac9613caef3778a4cb9765bb8b628e5a1c2.tar.gz scummvm-rg350-63c0dac9613caef3778a4cb9765bb8b628e5a1c2.tar.bz2 scummvm-rg350-63c0dac9613caef3778a4cb9765bb8b628e5a1c2.zip |
MUTATIONOFJB: Add support for macro definitions.
Diffstat (limited to 'engines/mutationofjb/script.cpp')
-rw-r--r-- | engines/mutationofjb/script.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/mutationofjb/script.cpp b/engines/mutationofjb/script.cpp index dfb6886af7..7a39127728 100644 --- a/engines/mutationofjb/script.cpp +++ b/engines/mutationofjb/script.cpp @@ -151,8 +151,7 @@ bool Script::loadFromStream(Common::SeekableReadStream &stream) { } } - Common::HashMap<Common::String, Command *> macros; - Common::HashMap<Common::String, Command *> labels; + _macros = parseCtx._macros; return true; } @@ -184,4 +183,8 @@ const ActionInfos &Script::getUseActionInfos() const { return _useActionInfos; } +const Macros &Script::getMacros() const { + return _macros; +} + } |