Commit c9a4bdd2 authored by nanahira's avatar nanahira

merge

parents 4ea8799a ad021d17
......@@ -631,14 +631,12 @@ interpreter::interpreter(duel* pd): coroutines(256) {
set_duel_info(lua_state, pd);
//Initial
luaL_openlibs(lua_state);
/*
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
lua_pushnil(lua_state);
lua_setglobal(lua_state, "file");
lua_setfield(lua_state, -2, "io");
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
lua_pushnil(lua_state);
lua_setglobal(lua_state, "io");
lua_pushnil(lua_state);
lua_setglobal(lua_state, "os");
*/
lua_setfield(lua_state, -2, "os");
//add bit lib back
lua_getglobal(lua_state, "bit32");
lua_setglobal(lua_state, "bit");
......
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