mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
Libretro: implement vbam logging using libretro logging api
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user