diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2022-01-26 08:47:06 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2022-01-26 08:56:03 -0500 |
commit | ca79d71af4bca7c1b8acc1df9e5dbb5b987d1542 (patch) | |
tree | 42994b1dd615273baa3e656b569ccd478270aff3 /src/frontend/mame | |
parent | ba918b59faad5244d87078ab3b955f64fd803c4d (diff) |
Remove void *ptr parameter from emu_timer, timer_device and all related callbacks
Diffstat (limited to 'src/frontend/mame')
-rw-r--r-- | src/frontend/mame/luaengine.cpp | 4 | ||||
-rw-r--r-- | src/frontend/mame/luaengine.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index 84048cf7e57..4798d7ca9d4 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -710,7 +710,7 @@ void lua_engine::initialize() if (ret == 1) return luaL_error(L, "cannot wait from outside coroutine"); int ref = luaL_ref(L, LUA_REGISTRYINDEX); - engine->machine().scheduler().timer_set(attotime::from_double(lua_tonumber(L, 1)), timer_expired_delegate(FUNC(lua_engine::resume), engine), ref, nullptr); + engine->machine().scheduler().timer_set(attotime::from_double(lua_tonumber(L, 1)), timer_expired_delegate(FUNC(lua_engine::resume), engine), ref); return lua_yield(L, 0); }); emu["lang_translate"] = sol::overload( @@ -1894,7 +1894,7 @@ void lua_engine::close() } } -void lua_engine::resume(void *ptr, int nparam) +void lua_engine::resume(int nparam) { lua_rawgeti(m_lua_state, LUA_REGISTRYINDEX, nparam); lua_State *L = lua_tothread(m_lua_state, -1); diff --git a/src/frontend/mame/luaengine.h b/src/frontend/mame/luaengine.h index f61baa8c083..bb16aea6a43 100644 --- a/src/frontend/mame/luaengine.h +++ b/src/frontend/mame/luaengine.h @@ -159,7 +159,7 @@ private: void on_machine_resume(); void on_machine_frame(); - void resume(void *ptr, int nparam); + void resume(int nparam); void register_function(sol::function func, const char *id); int enumerate_functions(const char *id, std::function<bool(const sol::protected_function &func)> &&callback); bool execute_function(const char *id); |