1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Schematics: Prepend mod path to relative schematic filepaths

This commit is contained in:
kwolekr 2015-04-07 23:04:48 -04:00
parent 5132908f4b
commit 0df736173e
6 changed files with 92 additions and 48 deletions

View file

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