diff options
Diffstat (limited to 'src/emu/mame.c')
-rw-r--r-- | src/emu/mame.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emu/mame.c b/src/emu/mame.c index e6915e2cf48..9511df4e9df 100644 --- a/src/emu/mame.c +++ b/src/emu/mame.c @@ -286,6 +286,14 @@ void CLIB_DECL popmessage(const char *format, ...) // pop it in the UI machine_manager::instance()->machine()->ui().popup_time(temp.len() / 40 + 2, "%s", temp.cstr()); + + // also write to error.log + logerror("popmessage: %s\n", temp.cstr()); + +#ifdef MAME_DEBUG + // and to command-line in a DEBUG build + osd_printf_info("popmessage: %s\n", temp.cstr()); +#endif } } |