diff options
author | 2020-12-16 03:08:41 +1100 | |
---|---|---|
committer | 2020-12-16 03:08:41 +1100 | |
commit | 35bec8d2731fb775248ff3634bde538d77d6f2a0 (patch) | |
tree | ca0c52259fc229c0e75af23f5ccf348e0c268274 /src | |
parent | 503332a9867f9aa27fc77cd9e762626d22d213ef (diff) |
Lua engine: fix a dumb copy/paste error and an unused lambda capture from previous commit.
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/mame/luaengine.ipp | 4 | ||||
-rw-r--r-- | src/frontend/mame/luaengine_input.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/luaengine.ipp b/src/frontend/mame/luaengine.ipp index d6ca0e981a0..8d51fb0a092 100644 --- a/src/frontend/mame/luaengine.ipp +++ b/src/frontend/mame/luaengine.ipp @@ -268,8 +268,8 @@ bool sol_lua_check(sol::types<osd_file::error>, lua_State *L, int index, Handler // map_handler_type customisation int sol_lua_push(sol::types<map_handler_type>, lua_State *L, map_handler_type &&value); -// endianness customisation -int sol_lua_push(sol::types<map_handler_type>, lua_State *L, map_handler_type &&value); +// endianness_t customisation +int sol_lua_push(sol::types<endianness_t>, lua_State *L, endianness_t &&value); template <typename T> diff --git a/src/frontend/mame/luaengine_input.cpp b/src/frontend/mame/luaengine_input.cpp index 866117a29b2..2e13262db78 100644 --- a/src/frontend/mame/luaengine_input.cpp +++ b/src/frontend/mame/luaengine_input.cpp @@ -144,7 +144,7 @@ void lua_engine::initialize_input(sol::table &emu) ioport_manager_type["count_players"] = &ioport_manager::count_players; ioport_manager_type["type_group"] = &ioport_manager::type_group; ioport_manager_type["type_seq"] = - [this] (ioport_manager &im, ioport_type type, int player, std::string const &seq_type_string) + [] (ioport_manager &im, ioport_type type, int player, std::string const &seq_type_string) { input_seq_type seq_type = s_seq_type_parser(seq_type_string); return im.type_seq(type, player, seq_type); |