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:
Michaël Banaan Ananas 2011-08-22 21:31:34 +00:00
parent 94e6e7cd1a
commit c0d1aaf1a3
2 changed files with 11 additions and 2 deletions

View File

@ -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;

View File

@ -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();
}