mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
Show a message if coin-lockout is active and coin x is pressed.
This commit is contained in:
parent
bb9c7b593d
commit
2cfb327cbe
@ -2942,10 +2942,15 @@ profiler_mark(PROFILER_INPUT);
|
|||||||
#endif
|
#endif
|
||||||
/* skip locked-out coin inputs */
|
/* skip locked-out coin inputs */
|
||||||
if (port->type >= IPT_COIN1 && port->type <= IPT_COIN8 && coinlockedout[port->type - IPT_COIN1])
|
if (port->type >= IPT_COIN1 && port->type <= IPT_COIN8 && coinlockedout[port->type - IPT_COIN1])
|
||||||
|
{
|
||||||
|
ui_popup_time(3, "Coinlock disabled %s.", input_port_name(port));
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
if (port->type >= IPT_SERVICE1 && port->type <= IPT_SERVICE4 && servicecoinlockedout[port->type - IPT_SERVICE1])
|
if (port->type >= IPT_SERVICE1 && port->type <= IPT_SERVICE4 && servicecoinlockedout[port->type - IPT_SERVICE1])
|
||||||
|
{
|
||||||
|
ui_popup_time(3, "Coinlock disabled %s.", input_port_name(port));
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
/* if this is a downward press and we're an impulse control, reset the count */
|
/* if this is a downward press and we're an impulse control, reset the count */
|
||||||
if (port->impulse)
|
if (port->impulse)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user