aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/libretro.c12
-rw-r--r--frontend/main.c2
2 files changed, 14 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index e48069a..b8d17ab 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -2286,3 +2286,15 @@ int usleep (unsigned long us)
sceKernelDelayThread(us);
}
#endif
+
+void SysPrintf(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_INFO, "%s", msg);
+}
diff --git a/frontend/main.c b/frontend/main.c
index 860dec0..c0bfd0f 100644
--- a/frontend/main.c
+++ b/frontend/main.c
@@ -795,6 +795,7 @@ int emu_load_state(int slot)
return LoadState(fname);
}
+#ifndef HAVE_LIBRETRO
#ifndef ANDROID
void SysPrintf(const char *fmt, ...) {
@@ -819,6 +820,7 @@ void SysPrintf(const char *fmt, ...) {
}
#endif
+#endif /* HAVE_LIBRETRO */
void SysMessage(const char *fmt, ...) {
va_list list;