mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-25 20:16:54 +01:00
Silence the log writing after a while. Ugly, we should have some /dev/null approach instead
This commit is contained in:
parent
642803c0ef
commit
d959c5c32a
@ -574,8 +574,11 @@ void gui_notify_state (int state)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int log_quiet;
|
||||||
int gui_update (void)
|
int gui_update (void)
|
||||||
{
|
{
|
||||||
|
log_quiet = 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,11 +39,14 @@ void set_logfile (const char *logfile_name)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int log_quiet = 0;
|
||||||
|
|
||||||
void write_log (const char *fmt, ...)
|
void write_log (const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start (ap, fmt);
|
va_start (ap, fmt);
|
||||||
#ifdef HAVE_VFPRINTF
|
#ifdef HAVE_VFPRINTF
|
||||||
|
if (!log_quiet)
|
||||||
vfprintf (logfile ? logfile : stderr, fmt, ap);
|
vfprintf (logfile ? logfile : stderr, fmt, ap);
|
||||||
#else
|
#else
|
||||||
/* Technique stolen from GCC. */
|
/* Technique stolen from GCC. */
|
||||||
|
Loading…
Reference in New Issue
Block a user