1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

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 @@ 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);