mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
setting_bool_action_ok_exit - cleanup
This commit is contained in:
parent
4169f066fc
commit
d56ccd2014
@ -1103,16 +1103,10 @@ static int setting_action_ok_bind_defaults(void *data, unsigned action)
|
|||||||
|
|
||||||
static int setting_bool_action_ok_exit(void *data, unsigned action)
|
static int setting_bool_action_ok_exit(void *data, unsigned action)
|
||||||
{
|
{
|
||||||
rarch_setting_t *setting = (rarch_setting_t*)data;
|
if (setting_generic_action_ok_default(data, 0) != 0)
|
||||||
|
|
||||||
if (!setting)
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (setting->cmd_trigger.idx != EVENT_CMD_NONE)
|
event_command(EVENT_CMD_RESUME);
|
||||||
{
|
|
||||||
event_command(setting->cmd_trigger.idx);
|
|
||||||
event_command(EVENT_CMD_RESUME);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user