mirror of
https://github.com/holub/mame
synced 2025-05-10 00:01:52 +03:00
Putting "coinlock disabled" popmessage under MAME_DEBUG or verbose(mame -v). Also show watchdog reset message under verbose, which was previously only shown under MAME_DEBUG.
This commit is contained in:
parent
94e6e7cd1a
commit
c0d1aaf1a3
@ -2793,7 +2793,12 @@ static int frame_get_digital_field_state(const input_field_config *field, int mo
|
||||
/* skip locked-out coin inputs */
|
||||
if (curstate && field->type >= IPT_COIN1 && field->type <= IPT_COIN12 && coin_lockout_get_state(field->machine(), field->type - IPT_COIN1) && field->machine().options().coin_lockout())
|
||||
{
|
||||
ui_popup_time(3, "Coinlock disabled %s.", input_field_name(field));
|
||||
int verbose = field->machine().options().verbose();
|
||||
#ifdef MAME_DEBUG
|
||||
verbose = 1;
|
||||
#endif
|
||||
if (verbose)
|
||||
ui_popup_time(3, "Coinlock disabled %s.", input_field_name(field));
|
||||
return FALSE;
|
||||
}
|
||||
return curstate;
|
||||
|
@ -10,6 +10,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "emuopts.h"
|
||||
|
||||
|
||||
|
||||
@ -71,9 +72,12 @@ static TIMER_CALLBACK( watchdog_callback )
|
||||
{
|
||||
logerror("Reset caused by the watchdog!!!\n");
|
||||
|
||||
int verbose = machine.options().verbose();
|
||||
#ifdef MAME_DEBUG
|
||||
popmessage("Reset caused by the watchdog!!!\n");
|
||||
verbose = 1;
|
||||
#endif
|
||||
if (verbose)
|
||||
popmessage("Reset caused by the watchdog!!!\n");
|
||||
|
||||
machine.schedule_soft_reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user