Commit e43543ea authored by nanahira's avatar nanahira

lua save control in ocgcore

parent 83f31828
......@@ -631,7 +631,7 @@ interpreter::interpreter(duel* pd): coroutines(256) {
set_duel_info(lua_state, pd);
//Initial
luaL_openlibs(lua_state);
/*
#ifdef YGOPRO_LUA_SAVE
lua_pushnil(lua_state);
lua_setglobal(lua_state, "io");
lua_pushnil(lua_state);
......@@ -642,7 +642,7 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_pushnil(lua_state);
lua_setfield(lua_state, -2, "os");
lua_pop(lua_state, 1);
*/
#endif
//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