1
0

Moved Lua API registering into a separate function.

This will allow us to use Lua as lite-config files as well, should we want to.
This commit is contained in:
madmaxoft
2014-03-12 13:05:28 +01:00
parent 392fb7923b
commit 0c15fdf7b0
4 changed files with 17 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ bool cPluginLua::Initialize(void)
if (!m_LuaState.IsValid())
{
m_LuaState.Create();
m_LuaState.RegisterAPILibs();
// Inject the identification global variables into the state:
lua_pushlightuserdata(m_LuaState, this);