X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=b8d17ab9922f27e51af2adc0523a55e36cdfe13b;hb=3e42b1155e892eae2dcd0ee62d0645ef43b889a5;hp=86cd34e2bfc0671d427f7cc388b45dcb45d71185;hpb=2d17de264fd31d662d4580a5f4bf268fa9ebd42a;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index 86cd34e2..b8d17ab9 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -191,8 +191,6 @@ static void vout_set_mode(int w, int h, int raw_w, int raw_h, int bpp) previous_width = vout_width; previous_height = vout_height; - SysPrintf("setting mode width: %d height %d\n", vout_width, vout_height); - struct retro_system_av_info info; retro_get_system_av_info(&info); environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &info.geometry); @@ -2288,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); +}