diff --git a/patch.c b/patch.c index 6dcb54929b..8aec0af652 100644 --- a/patch.c +++ b/patch.c @@ -590,8 +590,9 @@ void patch_content( const char *name_bps, const char *name_ups, uint8_t **buf, - ssize_t *size) + void *data) { + ssize_t *size = (ssize_t*)data; bool allow_ups = !rarch_ctl(RARCH_CTL_IS_BPS_PREF, NULL) && !rarch_ctl(RARCH_CTL_IS_IPS_PREF, NULL); bool allow_ips = !rarch_ctl(RARCH_CTL_IS_UPS_PREF, NULL) && !rarch_ctl(RARCH_CTL_IS_BPS_PREF, NULL); bool allow_bps = !rarch_ctl(RARCH_CTL_IS_UPS_PREF, NULL) && !rarch_ctl(RARCH_CTL_IS_IPS_PREF, NULL); diff --git a/patch.h b/patch.h index 33993d8468..e3f2f83801 100644 --- a/patch.h +++ b/patch.h @@ -40,7 +40,8 @@ void patch_content( const char *name_ips, const char *name_bps, const char *name_ups, - uint8_t **buf, ssize_t *size); + uint8_t **buf, + void *data); RETRO_END_DECLS