diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/libretro.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c index 50392a9..a8895d8 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -2885,3 +2885,17 @@ void SysPrintf(const char *fmt, ...) if (log_cb) log_cb(RETRO_LOG_INFO, "%s", msg); } + +/* Prints debug-level logs */ +void SysDLog(const char *fmt, ...) +{ + va_list list; + char msg[512]; + + va_start(list, fmt); + vsprintf(msg, fmt, list); + va_end(list); + + if (log_cb) + log_cb(RETRO_LOG_DEBUG, "%s", msg); +} |