feat: support for external lib and moonscript (#229)

Co-authored-by: 55Honey <71938210+55Honey@users.noreply.github.com>
This commit is contained in:
iThorgrim
2025-01-25 15:46:17 +01:00
committed by GitHub
parent d76f64f838
commit f987a52003
3 changed files with 75 additions and 11 deletions

View File

@@ -92,6 +92,9 @@ public:
typedef std::recursive_mutex LockType;
typedef std::lock_guard<LockType> Guard;
const std::string& GetRequirePath() const { return lua_requirepath; }
const std::string& GetRequireCPath() const { return lua_requirecpath; }
private:
static bool reload;
static bool initialized;
@@ -105,6 +108,7 @@ private:
static std::string lua_folderpath;
// lua path variable for require() function
static std::string lua_requirepath;
static std::string lua_requirecpath;
// A counter for lua event stacks that occur (see event_level).
// This is used to determine whether an object belongs to the current call stack or not.