From 3af4bb5ed2c17d17ecc8073cd233277ed8541cf1 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 18 Jun 2015 15:27:08 +0000 Subject: MirLua: scripts reloading pt.1 git-svn-id: http://svn.miranda-ng.org/main/trunk@14245 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'plugins/MirLua/src/mlua.h') diff --git a/plugins/MirLua/src/mlua.h b/plugins/MirLua/src/mlua.h index cf1eb7c0fa..fc10545c42 100644 --- a/plugins/MirLua/src/mlua.h +++ b/plugins/MirLua/src/mlua.h @@ -7,15 +7,22 @@ private: lua_State *L; static luaL_Reg coreLib[15]; - void Preload(const char *name, lua_CFunction func); + void LoadModule(const char *name, lua_CFunction func); + + void LoadCoreModule(); + void LoadMirandaModules(); + + void Load(); + void Unload(); public: CMLua(); ~CMLua(); - void AddPath(const char *path); + void Reload(); - void Load(const char *name); + void AddScriptsPath(const char *path); + void LoadScript(const char *name); static WPARAM GetWParam(lua_State *L, int idx); static LPARAM GetLParam(lua_State *L, int idx); -- cgit v1.2.3