(Menu) Refactor away load_menu_game_new_core

This commit is contained in:
twinaphex 2014-07-22 03:41:24 +02:00
parent 176b4f91b6
commit d27ffd007f
3 changed files with 6 additions and 17 deletions

View File

@ -438,20 +438,6 @@ void menu_flush_stack_type(unsigned final_type)
}
}
void load_menu_game_new_core(void)
{
if (!driver.menu)
return;
#ifdef HAVE_DYNAMIC
rarch_main_command(RARCH_CMD_LOAD_CORE);
g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME);
#else
rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, (void*)g_settings.libretro);
rarch_environment_cb(RETRO_ENVIRONMENT_EXEC, (void*)g_extern.fullpath);
#endif
}
bool menu_iterate(void)
{
unsigned action;

View File

@ -107,7 +107,6 @@ void load_menu_game_prepare(void);
void load_menu_game_prepare_dummy(void);
bool load_menu_game(void);
void load_menu_game_history(unsigned game_index);
extern void load_menu_game_new_core(void);
void menu_rom_history_push(const char *path, const char *core_path,
const char *core_name);
void menu_rom_history_push_current(void);

View File

@ -3084,8 +3084,12 @@ void rarch_main_command(unsigned action)
switch (action)
{
case RARCH_CMD_LOAD_CONTENT:
#ifdef HAVE_MENU
load_menu_game_new_core();
#ifdef HAVE_DYNAMIC
rarch_main_command(RARCH_CMD_LOAD_CORE);
g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME);
#else
rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, (void*)g_settings.libretro);
rarch_environment_cb(RETRO_ENVIRONMENT_EXEC, (void*)g_extern.fullpath);
#endif
break;
case RARCH_CMD_LOAD_CORE: