aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornegativeExponent2020-08-03 07:58:26 +0800
committernegativeExponent2020-08-03 08:08:33 +0800
commitd23e64c18b3306f9cd95372745bed7172639720e (patch)
treefb3e839b7a1b94b752c4ea7ff4b2f3f4b662f86a /frontend
parentab323c13064ac483e66682556ae3bf387df0f29d (diff)
downloadpcsx_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.c14
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);
+}