| 6289 | }; |
| 6290 | |
| 6291 | void CallExitFunction() |
| 6292 | { |
| 6293 | if (!L) |
| 6294 | return; |
| 6295 | |
| 6296 | lua_settop(L, 0); |
| 6297 | lua_getfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_BEFOREEXIT]); |
| 6298 | |
| 6299 | int errorcode = 0; |
| 6300 | if (lua_isfunction(L, -1)) |
| 6301 | { |
| 6302 | //chdir(luaCWD); |
| 6303 | errorcode = lua_pcall(L, 0, 0, 0); |
| 6304 | //_getcwd(luaCWD, _MAX_PATH); |
| 6305 | } |
| 6306 | |
| 6307 | if (errorcode) |
| 6308 | HandleCallbackError(L); |
| 6309 | } |
| 6310 | |
| 6311 | void FCEU_LuaFrameBoundary() |
| 6312 | { |
no test coverage detected