From 004c6ffa3738bb7a97e0fa6e90900002058fc446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Tue, 17 Mar 2015 13:58:00 +0100 Subject: [PATCH] write popmessage() to error.log as well - and command-line in DEBUG build (nw) --- src/emu/mame.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 } }