Skip to content

Commit

Permalink
Fix DebugCallback for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
CEnnis91 committed Aug 3, 2022
1 parent a808afd commit 30d13e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom/mupen64plus-input-raphnetraw/plugin_front.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 30d13e0

Please sign in to comment.