Try to prevent compiler error

This commit is contained in:
twinaphex 2017-01-31 04:04:45 +01:00
parent 2b0002e00b
commit 68211e2721
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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