Eluna fix require path to lua script folder structure. Implement .ext.lua and comment them in the ext files that exist.

This commit is contained in:
Rochet2
2014-11-09 17:16:47 +02:00
parent d7920b4bb7
commit 2343f1b2d6
5 changed files with 46 additions and 28 deletions

View File

@@ -137,13 +137,14 @@ public:
static ScriptList lua_scripts;
static ScriptList lua_extensions;
static std::string lua_folderpath;
static std::string lua_requirepath;
static void Initialize();
static void Uninitialize();
// Use Eluna::reload = true; instead.
// This will be called on next update
static void ReloadEluna();
static void GetScripts(std::string path, ScriptList& scripts);
static void AddScriptPath(std::string filename, std::string fullpath, ScriptList& scripts);
static void GetScripts(std::string path);
static void AddScriptPath(std::string filename, std::string fullpath);
static void report(lua_State*);
static void ExecuteCall(lua_State* L, int params, int res);