summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-12 13:05:28 +0100
committermadmaxoft <github@xoft.cz>2014-03-12 13:05:28 +0100
commit0c15fdf7b05ee6ad0705b2a789f6b709bbde2733 (patch)
tree69db118c8a6f19f443400fe8cf4e98d1f95428f7 /src/Bindings/LuaState.cpp
parentMerge remote-tracking branch 'origin/SnowBall' (diff)
downloadcuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar
cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.gz
cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.bz2
cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.lz
cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.xz
cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.tar.zst
cuberite-0c15fdf7b05ee6ad0705b2a789f6b709bbde2733.zip
Diffstat (limited to 'src/Bindings/LuaState.cpp')
-rw-r--r--src/Bindings/LuaState.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index aa6ee05b3..1f0549a59 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -94,12 +94,20 @@ void cLuaState::Create(void)
}
m_LuaState = lua_open();
luaL_openlibs(m_LuaState);
+ m_IsOwned = true;
+}
+
+
+
+
+
+void cLuaState::RegisterAPILibs(void)
+{
tolua_AllToLua_open(m_LuaState);
ManualBindings::Bind(m_LuaState);
DeprecatedBindings::Bind(m_LuaState);
luaopen_lsqlite3(m_LuaState);
luaopen_lxp(m_LuaState);
- m_IsOwned = true;
}