Commit 4021b88f authored by nanahira's avatar nanahira

useless

parent 58c1307e
......@@ -631,6 +631,7 @@ interpreter::interpreter(duel* pd): coroutines(256) {
set_duel_info(lua_state, pd);
//Initial
luaL_openlibs(lua_state);
/*
lua_pushnil(lua_state);
lua_setglobal(lua_state, "io");
lua_pushnil(lua_state);
......@@ -641,6 +642,7 @@ interpreter::interpreter(duel* pd): coroutines(256) {
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, LUA_LOADED_TABLE);
lua_pushnil(lua_state);
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