From 73d0737f97fbddd7f98291ce619ca7302e70c346 Mon Sep 17 00:00:00 2001 From: dborth Date: Sat, 30 Jun 2012 02:12:05 +0000 Subject: [PATCH] don't display messages --- source/fceultra/video.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/fceultra/video.cpp b/source/fceultra/video.cpp index 45d3d7b..1d729ad 100644 --- a/source/fceultra/video.cpp +++ b/source/fceultra/video.cpp @@ -450,17 +450,18 @@ void FCEU_DispMessageOnMovie(char *format, ...) void FCEU_DispMessage(char *format, int disppos=0, ...) { +#ifndef GEKKO va_list ap; va_start(ap,disppos); vsnprintf(guiMessage.errmsg,sizeof(guiMessage.errmsg),format,ap); -#ifndef GEKKO + // also log messages char temp[2048]; vsnprintf(temp,sizeof(temp),format,ap); strcat(temp, "\n"); FCEU_printf(temp); -#endif + va_end(ap); guiMessage.howlong = 180; @@ -479,6 +480,7 @@ void FCEU_DispMessage(char *format, int disppos=0, ...) guiMessage.howlong = 0; } #endif +#endif } void FCEU_ResetMessages()