diff options
author | Nipun Garg | 2019-06-06 02:59:02 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:43 +0200 |
commit | 24d42ce43acd53eca942059d10d3bcf903be995f (patch) | |
tree | 9df974d6133302092c1277ba608747b7c5020d5d /engines | |
parent | 431d819d08bc1972a65acf18bbdb647674c18e9a (diff) | |
download | scummvm-rg350-24d42ce43acd53eca942059d10d3bcf903be995f.tar.gz scummvm-rg350-24d42ce43acd53eca942059d10d3bcf903be995f.tar.bz2 scummvm-rg350-24d42ce43acd53eca942059d10d3bcf903be995f.zip |
HDB: Remove the char *name arg from initScript
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/lua-script.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index df6d874a89..79d4afb362 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -573,7 +573,7 @@ struct FuncInit { { NULL, NULL } }; -bool LuaScript::initScript(Common::SeekableReadStream *stream, const char *name, int32 length) { +bool LuaScript::initScript(Common::SeekableReadStream *stream, int32 length) { if (_systemInit) { return false; diff --git a/engines/hdb/lua-script.h b/engines/hdb/lua-script.h index c96ba451b8..eee51cd396 100644 --- a/engines/hdb/lua-script.h +++ b/engines/hdb/lua-script.h @@ -38,7 +38,7 @@ public: ~LuaScript(); bool init(); - bool initScript(Common::SeekableReadStream *stream, const char *name, int32 length); + bool initScript(Common::SeekableReadStream *stream, int32 length); bool executeMPC(Common::SeekableReadStream *stream, const char *name, int32 length); bool executeFile(const Common::String &filename); @@ -48,7 +48,7 @@ private: bool registerExtensions(); bool executeChunk(const char *chunk, uint chunkSize, const Common::String &chunkName) const; - void stripComments(char *chunk); + void sanitizeScript(char *chunk); }; |