summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/lua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/lua.cpp')
-rw-r--r--plugins/MirLua/src/lua.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/plugins/MirLua/src/lua.cpp b/plugins/MirLua/src/lua.cpp
deleted file mode 100644
index 7f96a2300f..0000000000
--- a/plugins/MirLua/src/lua.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "stdafx.h"
-
-CMLua::CMLua() : L(nullptr)
-{
-}
-
-CMLua::~CMLua()
-{
- Log("Unloading lua engine");
-
- KillObjectEventHooks(L);
- KillObjectServices(L);
-
- lua_close(L);
-}
-
-lua_State* CMLua::GetState()
-{
- return L;
-}
-
-void CMLua::Load()
-{
- Log("Loading lua engine");
- L = luaL_newstate();
- Log("Loading standard modules");
- luaL_openlibs(L);
-
- lua_atpanic(L, luaM_atpanic);
-}