Add EVENT_CMD_EXEC
This commit is contained in:
parent
8c8ea6c167
commit
f75f0beb08
|
@ -882,7 +882,7 @@ static void event_main_state(unsigned cmd)
|
|||
RARCH_LOG("%s\n", msg);
|
||||
}
|
||||
|
||||
bool event_cmd_exec(void *data)
|
||||
static bool event_cmd_exec(void *data)
|
||||
{
|
||||
char *fullpath = NULL;
|
||||
|
||||
|
@ -975,7 +975,7 @@ bool event_cmd_ctl(enum event_command cmd, void *data)
|
|||
char *fullpath = NULL;
|
||||
runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath);
|
||||
runloop_ctl(RUNLOOP_CTL_SET_LIBRETRO_PATH, settings->libretro);
|
||||
event_cmd_exec((void*)fullpath);
|
||||
event_cmd_ctl(EVENT_CMD_EXEC, (void*)fullpath);
|
||||
event_cmd_ctl(EVENT_CMD_QUIT, NULL);
|
||||
#endif
|
||||
}
|
||||
|
@ -1662,6 +1662,8 @@ bool event_cmd_ctl(enum event_command cmd, void *data)
|
|||
case EVENT_CMD_SET_FRAME_LIMIT:
|
||||
runloop_ctl(RUNLOOP_CTL_SET_FRAME_LIMIT, NULL);
|
||||
break;
|
||||
case EVENT_CMD_EXEC:
|
||||
return event_cmd_exec(data);
|
||||
case EVENT_CMD_NONE:
|
||||
default:
|
||||
return false;
|
||||
|
|
|
@ -204,11 +204,10 @@ enum event_command
|
|||
EVENT_CMD_REMAPPING_INIT,
|
||||
EVENT_CMD_REMAPPING_DEINIT,
|
||||
EVENT_CMD_VOLUME_UP,
|
||||
EVENT_CMD_VOLUME_DOWN
|
||||
EVENT_CMD_VOLUME_DOWN,
|
||||
EVENT_CMD_EXEC
|
||||
};
|
||||
|
||||
bool event_cmd_exec(void *data);
|
||||
|
||||
/**
|
||||
* event_command:
|
||||
* @cmd : Command index.
|
||||
|
|
|
@ -219,7 +219,7 @@ static bool menu_content_load_from_playlist(void *data)
|
|||
else
|
||||
menu_driver_ctl(RARCH_MENU_CTL_SET_LOAD_NO_CONTENT, NULL);
|
||||
|
||||
if (!event_cmd_exec((void*)path))
|
||||
if (!event_cmd_ctl(EVENT_CMD_EXEC, (void*)path))
|
||||
return false;
|
||||
|
||||
event_cmd_ctl(EVENT_CMD_LOAD_CORE, NULL);
|
||||
|
|
Loading…
Reference in New Issue