diff options
author | negativeExponent | 2020-08-03 07:58:26 +0800 |
---|---|---|
committer | negativeExponent | 2020-08-03 08:08:33 +0800 |
commit | d23e64c18b3306f9cd95372745bed7172639720e (patch) | |
tree | fb3e839b7a1b94b752c4ea7ff4b2f3f4b662f86a /frontend | |
parent | ab323c13064ac483e66682556ae3bf387df0f29d (diff) | |
download | pcsx_rearmed-d23e64c18b3306f9cd95372745bed7172639720e.tar.gz pcsx_rearmed-d23e64c18b3306f9cd95372745bed7172639720e.tar.bz2 pcsx_rearmed-d23e64c18b3306f9cd95372745bed7172639720e.zip |
Add debug-level log function
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); +} |