mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
Fixed unused lambda capture in Lua engine.
This commit is contained in:
parent
0f785dee8f
commit
8ff3e1cb31
@ -115,10 +115,10 @@ public:
|
||||
void nwri_w(offs_t offset, uint8_t data) { if (m_card != nullptr) m_card->nwri_w(offset, data); }
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
// device_t implementation
|
||||
virtual void device_start() override;
|
||||
|
||||
// image-level overrides
|
||||
// device_image_interface implementation
|
||||
virtual std::error_condition call_load() override;
|
||||
virtual const software_list_loader &get_software_list_loader() const override;
|
||||
|
||||
@ -126,7 +126,7 @@ protected:
|
||||
virtual const char *image_interface() const noexcept override { return "pofo_card"; }
|
||||
virtual const char *file_extensions() const noexcept override { return "rom,bin"; }
|
||||
|
||||
// slot interface overrides
|
||||
// device_slot_interface implementation
|
||||
virtual std::string get_default_card_software(get_default_card_software_hook &hook) const override;
|
||||
|
||||
device_portfolio_memory_card_slot_interface *m_card;
|
||||
|
@ -592,7 +592,7 @@ auto lua_engine::make_simple_callback_setter(void (T::*setter)(delegate<R ()> &&
|
||||
else if (cb.is<sol::protected_function>())
|
||||
{
|
||||
(self.*setter)(delegate<R ()>(
|
||||
[this, dflt, desc, cbfunc = sol::protected_function(m_lua_state, cb)] () -> R
|
||||
[dflt, desc, cbfunc = sol::protected_function(m_lua_state, cb)] () -> R
|
||||
{
|
||||
auto status(invoke_direct(cbfunc));
|
||||
if (status.valid())
|
||||
|
Loading…
Reference in New Issue
Block a user