Add Lua errors to error dialog

This commit is contained in:
rubenwardy
2015-03-02 18:26:20 +00:00
committed by est31
parent 1455267c9e
commit 0d65ee878c
4 changed files with 60 additions and 38 deletions

View File

@@ -51,8 +51,8 @@ class ScriptApiBase {
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);