bool taseditor.registermanual(string caption)
| 5075 | |
| 5076 | // bool taseditor.registermanual(string caption) |
| 5077 | static 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() |
| 5097 | static int taseditor_engaged(lua_State *L) |
nothing calls this directly
no test coverage detected