Commit 1809dccf authored by nanahira's avatar nanahira

allow coroutine lib, and fuck up yuzurisa

parent 5399fa86
...@@ -32,8 +32,8 @@ interpreter::interpreter(duel* pd): coroutines(256) { ...@@ -32,8 +32,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setglobal(lua_state, "package"); lua_setglobal(lua_state, "package");
lua_pushnil(lua_state); lua_pushnil(lua_state);
lua_setglobal(lua_state, "debug"); lua_setglobal(lua_state, "debug");
lua_pushnil(lua_state); // lua_pushnil(lua_state);
lua_setglobal(lua_state, "coroutine"); // lua_setglobal(lua_state, "coroutine");
luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, "_LOADED"); luaL_getsubtable(lua_state, LUA_REGISTRYINDEX, "_LOADED");
lua_pushnil(lua_state); lua_pushnil(lua_state);
lua_setfield(lua_state, -2, "io"); lua_setfield(lua_state, -2, "io");
...@@ -43,8 +43,8 @@ interpreter::interpreter(duel* pd): coroutines(256) { ...@@ -43,8 +43,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_setfield(lua_state, -2, "package"); lua_setfield(lua_state, -2, "package");
lua_pushnil(lua_state); lua_pushnil(lua_state);
lua_setfield(lua_state, -2, "debug"); lua_setfield(lua_state, -2, "debug");
lua_pushnil(lua_state); // lua_pushnil(lua_state);
lua_setfield(lua_state, -2, "coroutine"); // lua_setfield(lua_state, -2, "coroutine");
lua_pop(lua_state, 1); lua_pop(lua_state, 1);
#endif #endif
//add bit lib back //add bit lib back
......
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