mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(Menu) Add RARCH_CMD_LOAD_CONTENT_PERSIST
This commit is contained in:
parent
59546e6f34
commit
d96de429ea
@ -1432,6 +1432,10 @@ static int menu_action_ok(const char *menu_path,
|
||||
sizeof(g_extern.fullpath));
|
||||
|
||||
menu_common_load_content();
|
||||
rarch_main_command(RARCH_CMD_LOAD_CONTENT_PERSIST);
|
||||
menu_flush_stack_type(driver.menu->menu_stack,MENU_SETTINGS);
|
||||
driver.menu->msg_force = true;
|
||||
RARCH_LOG("Gets here.\n");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
@ -95,6 +95,7 @@ enum basic_event
|
||||
RARCH_CMD_NONE = 0,
|
||||
RARCH_CMD_RESET,
|
||||
RARCH_CMD_LOAD_CONTENT,
|
||||
RARCH_CMD_LOAD_CONTENT_PERSIST,
|
||||
RARCH_CMD_LOAD_CORE,
|
||||
RARCH_CMD_LOAD_STATE,
|
||||
RARCH_CMD_SAVE_STATE,
|
||||
|
@ -3369,10 +3369,13 @@ void rarch_main_command(unsigned cmd)
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
case RARCH_CMD_LOAD_CONTENT:
|
||||
#ifdef HAVE_DYNAMIC
|
||||
case RARCH_CMD_LOAD_CONTENT_PERSIST:
|
||||
rarch_main_command(RARCH_CMD_LOAD_CORE);
|
||||
rarch_main_set_state(RARCH_ACTION_STATE_LOAD_CONTENT);
|
||||
break;
|
||||
case RARCH_CMD_LOAD_CONTENT:
|
||||
#ifdef HAVE_DYNAMIC
|
||||
rarch_main_command(RARCH_CMD_LOAD_CONTENT_PERSIST);
|
||||
#else
|
||||
rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH,
|
||||
(void*)g_settings.libretro);
|
||||
|
Loading…
x
Reference in New Issue
Block a user