diff options
author | Nipun Garg | 2019-06-05 01:10:57 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:42 +0200 |
commit | bc638cf2511e3b9faaeb7f3f72ed1fb95f47b032 (patch) | |
tree | 1da63c8bbbdc87191d9c58215e21ace53bbded40 /engines/hdb/lua-script.h | |
parent | fd666efd6ad39cc3c0fec61e14b096f74012b8e5 (diff) | |
download | scummvm-rg350-bc638cf2511e3b9faaeb7f3f72ed1fb95f47b032.tar.gz scummvm-rg350-bc638cf2511e3b9faaeb7f3f72ed1fb95f47b032.tar.bz2 scummvm-rg350-bc638cf2511e3b9faaeb7f3f72ed1fb95f47b032.zip |
HDB: Add LuaScript::initScript
It creates a new Lua environment whenever a new
Lua script is loaded
Diffstat (limited to 'engines/hdb/lua-script.h')
-rw-r--r-- | engines/hdb/lua-script.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/hdb/lua-script.h b/engines/hdb/lua-script.h index 8a9441a240..42e905d139 100644 --- a/engines/hdb/lua-script.h +++ b/engines/hdb/lua-script.h @@ -38,14 +38,15 @@ public: ~LuaScript(); bool init(); - //bool executeMPC(Common::SeekableReadStream *stream); + bool initScript(Common::SeekableReadStream *stream, const char *name, int32 length); + bool executeMPC(Common::SeekableReadStream *stream, const char *name, int32 length); bool executeFile(const Common::String &filename); private: lua_State *_state; bool _systemInit; - bool registerStdLibs(); + bool registerExtensions(); bool executeChunk(const char *chunk, uint chunkSize, const Common::String &chunkName) const; }; |