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:
parent
5132908f4b
commit
0df736173e
6 changed files with 92 additions and 48 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue