From feec9bc9fa6c3a2c1dfda0d45d056d093444378d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 5 Nov 2013 10:51:23 +0100 Subject: [PATCH] (Menu_common) Core selection - make it work on all console platforms and not just Wii --- frontend/menu/menu_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/menu/menu_common.c b/frontend/menu/menu_common.c index f9274132c4..c5e19901cd 100644 --- a/frontend/menu/menu_common.c +++ b/frontend/menu/menu_common.c @@ -1167,11 +1167,15 @@ static int rgui_iterate(void *data, unsigned action) // Core selection on non-console just updates directory listing. // Will take affect on new ROM load. -#elif defined(GEKKO) && defined(HW_RVL) +#elif defined(RARCH_CONSOLE rarch_environment_cb(RETRO_ENVIRONMENT_SET_LIBRETRO_PATH, (void*)path); +#if defined(GEKKO) && defined(HW_RVL) fill_pathname_join(g_extern.fullpath, default_paths.core_dir, SALAMANDER_FILE, sizeof(g_extern.fullpath)); +#else + fill_pathname_join(g_settings.libretro, dir, path, sizeof(g_settings.libretro)); +#endif g_extern.lifecycle_mode_state &= ~(1ULL << MODE_GAME); g_extern.lifecycle_mode_state |= (1ULL << MODE_EXITSPAWN); ret = -1;