- va_list list;
-
- va_start(list, fmt);
- fprintf(emu_log, "PicoDrive: ");
- vfprintf(emu_log, fmt, list);
- va_end(list);
- fflush(emu_log);
-}
-
-#else
-
-#include <android/log.h>
-
-void lprintf(const char *fmt, ...)
-{
- va_list list;
-
- va_start(list, fmt);
- __android_log_vprint(ANDROID_LOG_INFO, "PicoDrive", fmt, list);
- va_end(list);
+ /* TODO - add 'level' param for warning/error messages? */
+ if (log_cb)
+ log_cb(RETRO_LOG_INFO, fmt);