From 0df736173e60df06a7a7162c285b9c5731a07c20 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Tue, 7 Apr 2015 23:04:48 -0400 Subject: Schematics: Prepend mod path to relative schematic filepaths --- src/script/lua_api/l_base.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/script/lua_api/l_base.h') diff --git a/src/script/lua_api/l_base.h b/src/script/lua_api/l_base.h index debbcd09b..c580e9597 100644 --- a/src/script/lua_api/l_base.h +++ b/src/script/lua_api/l_base.h @@ -35,11 +35,12 @@ class GUIEngine; class ModApiBase { -protected: +public: static ScriptApiBase* getScriptApiBase(lua_State *L); static Server* getServer(lua_State *L); static Environment* getEnv(lua_State *L); static GUIEngine* getGuiEngine(lua_State *L); + static std::string getCurrentModPath(lua_State *L); // Get an arbitrary subclass of ScriptApiBase // by using dynamic_cast<> on getScriptApiBase() -- cgit v1.2.3