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

Function taseditor_registermanual

src/lua-engine.cpp:5077–5094  ·  view source on GitHub ↗

bool taseditor.registermanual(string caption)

Source from the content-addressed store, hash-verified

5075
5076// bool taseditor.registermanual(string caption)
5077static int taseditor_registermanual(lua_State *L)
5078{
5079 if (!lua_isnil(L,1))
5080 luaL_checktype(L, 1, LUA_TFUNCTION);
5081
5082 FCEU_MAYBE_UNUSED const char* caption = NULL;
5083 if (!lua_isnil(L, 2))
5084 caption = lua_tostring(L, 2);
5085
5086 lua_settop(L,1);
5087 lua_getfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_TASEDITOR_MANUAL]);
5088 lua_insert(L,1);
5089 lua_setfield(L, LUA_REGISTRYINDEX, luaCallIDStrings[LUACALL_TASEDITOR_MANUAL]);
5090#ifdef __WIN_DRIVER__
5091 taseditor_lua.enableRunFunction(caption);
5092#endif
5093 return 1;
5094}
5095
5096// bool taseditor.engaged()
5097static int taseditor_engaged(lua_State *L)

Callers

nothing calls this directly

Calls 6

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_getfieldFunction · 0.85
lua_insertFunction · 0.85
lua_setfieldFunction · 0.85
enableRunFunctionMethod · 0.45

Tested by

no test coverage detected