write popmessage() to error.log as well - and command-line in DEBUG build (nw)

This commit is contained in:
Oliver Stöneberg 2015-03-17 13:58:00 +01:00
parent becf4a8823
commit 004c6ffa37

View File

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