diff options
author | rubenwardy <rubenwardy@gmail.com> | 2015-03-02 18:26:20 +0000 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-06-29 04:47:35 +0200 |
commit | 0d65ee878c5301afdbd163aa2274e73588f88ed3 (patch) | |
tree | 52b99028770dcbeb7cbb6a6f3f3030a83e5549f5 /src/script/cpp_api/s_base.h | |
parent | 1455267c9e66f64cd49e01aac782060c95bb925e (diff) | |
download | minetest-0d65ee878c5301afdbd163aa2274e73588f88ed3.tar.gz minetest-0d65ee878c5301afdbd163aa2274e73588f88ed3.tar.bz2 minetest-0d65ee878c5301afdbd163aa2274e73588f88ed3.zip |
Add Lua errors to error dialog
Diffstat (limited to 'src/script/cpp_api/s_base.h')
-rw-r--r-- | src/script/cpp_api/s_base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/cpp_api/s_base.h b/src/script/cpp_api/s_base.h index cf9b7b934..ee2835da2 100644 --- a/src/script/cpp_api/s_base.h +++ b/src/script/cpp_api/s_base.h @@ -51,8 +51,8 @@ public: ScriptApiBase(); virtual ~ScriptApiBase(); - bool loadMod(const std::string &script_path, const std::string &mod_name); - bool loadScript(const std::string &script_path); + bool loadMod(const std::string &script_path, const std::string &mod_name, std::string *error=NULL); + bool loadScript(const std::string &script_path, std::string *error=NULL); /* object */ void addObjectReference(ServerActiveObject *cobj); |