Add RARCH_CMD_LOAD_CORE_PERSIST
This commit is contained in:
parent
f7fa179301
commit
817c4d3d91
|
@ -67,7 +67,7 @@ static void menu_update_libretro_info(struct retro_system_info *info)
|
||||||
if (driver.menu_ctx && driver.menu_ctx->context_reset)
|
if (driver.menu_ctx && driver.menu_ctx->context_reset)
|
||||||
driver.menu_ctx->context_reset();
|
driver.menu_ctx->context_reset();
|
||||||
|
|
||||||
rarch_update_system_info(info, NULL);
|
rarch_main_command(RARCH_CMD_LOAD_CORE_PERSIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void menu_environment_get(int *argc, char *argv[],
|
static void menu_environment_get(int *argc, char *argv[],
|
||||||
|
|
11
retroarch.c
11
retroarch.c
|
@ -2168,19 +2168,22 @@ bool rarch_main_command(unsigned cmd)
|
||||||
rarch_main_command(RARCH_CMD_QUIT);
|
rarch_main_command(RARCH_CMD_QUIT);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case RARCH_CMD_LOAD_CORE:
|
case RARCH_CMD_LOAD_CORE_PERSIST:
|
||||||
{
|
{
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
menu_handle_t *menu = menu_driver_resolve();
|
menu_handle_t *menu = menu_driver_resolve();
|
||||||
if (menu)
|
if (menu)
|
||||||
rarch_update_system_info(&g_extern.menu.info,
|
rarch_update_system_info(&g_extern.menu.info,
|
||||||
&menu->load_no_content);
|
&menu->load_no_content);
|
||||||
#endif
|
|
||||||
#ifndef HAVE_DYNAMIC
|
|
||||||
rarch_main_command(RARCH_CMD_QUIT);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case RARCH_CMD_LOAD_CORE:
|
||||||
|
rarch_main_command(RARCH_CMD_LOAD_CORE_PERSIST);
|
||||||
|
#ifndef HAVE_DYNAMIC
|
||||||
|
rarch_main_command(RARCH_CMD_QUIT);
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
case RARCH_CMD_LOAD_STATE:
|
case RARCH_CMD_LOAD_STATE:
|
||||||
/* Immutable - disallow savestate load when
|
/* Immutable - disallow savestate load when
|
||||||
* we absolutely cannot change game state. */
|
* we absolutely cannot change game state. */
|
||||||
|
|
|
@ -34,6 +34,7 @@ enum basic_event
|
||||||
RARCH_CMD_LOAD_CONTENT_PERSIST,
|
RARCH_CMD_LOAD_CONTENT_PERSIST,
|
||||||
/* Loads core. */
|
/* Loads core. */
|
||||||
RARCH_CMD_LOAD_CORE,
|
RARCH_CMD_LOAD_CORE,
|
||||||
|
RARCH_CMD_LOAD_CORE_PERSIST,
|
||||||
RARCH_CMD_LOAD_STATE,
|
RARCH_CMD_LOAD_STATE,
|
||||||
RARCH_CMD_SAVE_STATE,
|
RARCH_CMD_SAVE_STATE,
|
||||||
/* Takes screenshot. */
|
/* Takes screenshot. */
|
||||||
|
|
Loading…
Reference in New Issue