Libretro: implement vbam logging using libretro logging api

This commit is contained in:
retro-wertz 2018-06-16 15:55:26 +08:00
parent f4b88ba63a
commit 90bc79f299
1 changed files with 12 additions and 0 deletions

View File

@ -1042,3 +1042,15 @@ SoundDriver* systemSoundInit()
soundShutdown();
return new SoundRetro();
}
void log(const char* defaultMsg, ...)
{
va_list valist;
char buf[2048];
va_start(valist, defaultMsg);
vsnprintf(buf, 2048, defaultMsg, valist);
va_end(valist);
if (log_cb)
log_cb(RETRO_LOG_INFO, "%s", buf);
}