diff options
author | hizzlekizzle | 2020-08-03 08:37:13 -0500 |
---|---|---|
committer | GitHub | 2020-08-03 08:37:13 -0500 |
commit | 996dfb25c3a7ef8a485c3ce394a532cb0ee2e5c2 (patch) | |
tree | 63a95203eb3837fc88f4b462d0e079f5cc5ceb19 /frontend | |
parent | f2556fe8b35a523a4dcf558865f89d7773d95a96 (diff) | |
parent | 6205159e4f51b9d79064fd1ce8dd6baa3809c3bc (diff) | |
download | pcsx_rearmed-996dfb25c3a7ef8a485c3ce394a532cb0ee2e5c2.tar.gz pcsx_rearmed-996dfb25c3a7ef8a485c3ce394a532cb0ee2e5c2.tar.bz2 pcsx_rearmed-996dfb25c3a7ef8a485c3ce394a532cb0ee2e5c2.zip |
Merge pull request #440 from negativeExponent/log_interface
Log interface
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); +} |