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

Function TaseditorDisableManualFunctionIfNeeded

src/lua-engine.cpp:2345–2355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2343
2344#ifdef __WIN_DRIVER__
2345void TaseditorDisableManualFunctionIfNeeded()
2346{
2347 if (L)
2348 {
2349 // check if LUACALL_TASEDITOR_MANUAL function is not nil
2350 lua_getfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_TASEDITOR_MANUAL]);
2351 if (!lua_isfunction(L, -1))
2352 taseditor_lua.disableRunFunction();
2353 lua_pop(L, 1);
2354 } else taseditor_lua.disableRunFunction();
2355}
2356#elif __QT_DRIVER__
2357void TaseditorDisableManualFunctionIfNeeded()
2358{

Callers 3

FCEU_LuaOnStopFunction · 0.85
resetMethod · 0.85
resetMethod · 0.85

Calls 2

lua_getfieldFunction · 0.85
disableRunFunctionMethod · 0.45

Tested by

no test coverage detected