mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
MT#7408: Fixed issue that caused most LUA callbacks to be duplicated (#5592)
This commit is contained in:
parent
5964e58cdf
commit
a17315b742
@ -638,13 +638,6 @@ int lua_engine::enumerate_functions(const char *id, std::function<bool(const sol
|
|||||||
count++;
|
count++;
|
||||||
if (!cont)
|
if (!cont)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
auto ret = invoke(func.second.as<sol::protected_function>());
|
|
||||||
if (!ret.valid())
|
|
||||||
{
|
|
||||||
sol::error err = ret;
|
|
||||||
osd_printf_error("[LUA ERROR] in execute_function: %s\n", err.what());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user