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

Function savestate_registerload

src/lua-engine.cpp:3180–3190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3178 return 1;
3179}
3180static int savestate_registerload(lua_State *L) {
3181
3182 lua_settop(L,1);
3183 if (!lua_isnil(L,1))
3184 luaL_checktype(L, 1, LUA_TFUNCTION);
3185 lua_getfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_AFTERLOAD]);
3186 lua_pushvalue(L,1);
3187 lua_setfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_AFTERLOAD]);
3188 //StopScriptIfFinished(luaStateToUIDMap[L]);
3189 return 1;
3190}
3191
3192static int savestate_loadscriptdata(lua_State *L) {
3193

Callers

nothing calls this directly

Calls 5

lua_settopFunction · 0.85
luaL_checktypeFunction · 0.85
lua_getfieldFunction · 0.85
lua_pushvalueFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected