MCPcopy Create free account
hub / github.com/TASEmulators/fceux / CallExitFunction

Function CallExitFunction

src/lua-engine.cpp:6291–6309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6289};
6290
6291void 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
6311void FCEU_LuaFrameBoundary()
6312{

Callers 1

FCEU_LuaStopFunction · 0.85

Calls 4

lua_settopFunction · 0.85
lua_getfieldFunction · 0.85
lua_pcallFunction · 0.85
HandleCallbackErrorFunction · 0.85

Tested by

no test coverage detected