Further Changes to rewrite Lua

This commit is contained in:
Lion Kortlepel
2021-04-02 01:02:18 +02:00
parent 3805d7ce6c
commit 0a35aadc51
2 changed files with 38 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ public:
[[nodiscard]] const TNetwork& Network() const { return mNetwork; }
void UnregisterScript(std::shared_ptr<TLuaFile> Script);
std::shared_ptr<TLuaFile> GetLuaFileOfScript(lua_State* L);
std::shared_ptr<TLuaFile> GetLuaFileOfState(lua_State* L);
std::shared_ptr<TLuaFile> InsertNewLuaFile(const fs::path& FileName, const std::string& PluginName);
void SendError(lua_State* L, const std::string& msg);