notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Silence warning -Wstringop-truncation
[pcsx_rearmed.git]
/
frontend
/
libretro.c
diff --git
a/frontend/libretro.c
b/frontend/libretro.c
index
45c4c9c
..
b8d17ab
100644
(file)
--- 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;
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);
struct retro_system_av_info info;
retro_get_system_av_info(&info);
environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &info.geometry);
@@
-1633,7
+1631,7
@@
static void update_variables(bool in_flight)
}
#endif
}
#endif
-#ifdef
DRC_DISABLE
+#ifdef
GPU_PEOPS
var.value = "NULL";
var.key = "pcsx_rearmed_gpu_peops_fix_0";
var.value = "NULL";
var.key = "pcsx_rearmed_gpu_peops_fix_0";
@@
-2288,3
+2286,15
@@
int usleep (unsigned long us)
sceKernelDelayThread(us);
}
#endif
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);
+}