Commit 58c1307e authored by nanahira's avatar nanahira

fix

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