Change core_set_poll_type

This commit is contained in:
twinaphex 2019-07-16 10:10:49 +02:00
parent 195b016293
commit 60f77cd903
3 changed files with 4 additions and 4 deletions

2
core.h
View File

@ -167,7 +167,7 @@ bool core_set_netplay_callbacks(void);
bool core_unset_netplay_callbacks(void);
#endif
bool core_set_poll_type(unsigned *type);
bool core_set_poll_type(unsigned type);
/* Runs the core for one frame. */
bool core_run(void);

View File

@ -5717,7 +5717,7 @@ void general_write_handler(rarch_setting_t *setting)
}
break;
case MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR:
core_set_poll_type((unsigned int*)setting->value.target.integer);
core_set_poll_type(*setting->value.target.integer);
break;
case MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER:
{

View File

@ -22159,9 +22159,9 @@ bool core_api_version(retro_ctx_api_info_t *api)
return true;
}
bool core_set_poll_type(unsigned *type)
bool core_set_poll_type(unsigned type)
{
current_core.poll_type = *type;
current_core.poll_type = type;
return true;
}