This commit is contained in:
Lion Kortlepel
2021-02-17 01:20:59 +01:00
committed by Anonymous275
parent 3dd2e1c278
commit 5759a6f80f
2 changed files with 5 additions and 1 deletions

View File

@@ -6,10 +6,14 @@
namespace fs = std::filesystem;
// necessary as lua relies on global state
TLuaEngine* TheEngine;
TLuaEngine::TLuaEngine(TServer& Server, TTCPServer& TCPServer, TUDPServer& UDPServer)
: mTCPServer(TCPServer)
, mUDPServer(UDPServer)
, mServer(Server) {
TheEngine = this;
if (!fs::exists(Application::Settings.Resource)) {
fs::create_directory(Application::Settings.Resource);
}