From 30d13e05c370607b1d3ae913244fa2b31c6c2128 Mon Sep 17 00:00:00 2001 From: CEnnis91 Date: Sat, 13 Nov 2021 13:28:40 -0500 Subject: [PATCH] Fix DebugCallback for logging --- custom/mupen64plus-input-raphnetraw/plugin_front.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/custom/mupen64plus-input-raphnetraw/plugin_front.c b/custom/mupen64plus-input-raphnetraw/plugin_front.c index fc66ff686..7ed597e3c 100644 --- a/custom/mupen64plus-input-raphnetraw/plugin_front.c +++ b/custom/mupen64plus-input-raphnetraw/plugin_front.c @@ -95,7 +95,14 @@ static void DebugMessage(int level, const char *message, ...) va_list args; if (!l_DebugCallback) { +#ifdef __LIBRETRO__ + va_start(args, message); + vsnprintf(msgbuf, sizeof(msgbuf), message, args); + printf("%s\n", msgbuf); + va_end(args); +#else printf("No debug callback!\n"); +#endif return; }