Commit 780d789f authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Allow disabling standard libs https://github.com/NLua/NLua/pull/436/files

parent 232110b7
...@@ -273,9 +273,9 @@ namespace NLua ...@@ -273,9 +273,9 @@ namespace NLua
} }
} }
public Lua() public Lua(bool openLibs = true)
{ {
_luaState = new LuaState(); _luaState = new LuaState(openLibs);
Init(); Init();
// We need to keep this in a managed reference so the delegate doesn't get garbage collected // We need to keep this in a managed reference so the delegate doesn't get garbage collected
_luaState.AtPanic(PanicCallback); _luaState.AtPanic(PanicCallback);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment