From 97c7ea07baa01d82328b680c500d4d2661e5a46a Mon Sep 17 00:00:00 2001 From: Toad King Date: Wed, 5 Mar 2014 16:39:00 -0500 Subject: [PATCH] fix core information not working on statically linked cores --- frontend/menu/menu_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/menu/menu_common.c b/frontend/menu/menu_common.c index c90cb6f156..c163675b0e 100644 --- a/frontend/menu/menu_common.c +++ b/frontend/menu/menu_common.c @@ -35,15 +35,16 @@ rgui_handle_t *rgui; const menu_ctx_driver_t *menu_ctx; -#ifdef HAVE_DYNAMIC static void menu_update_system_info(void *data, bool *load_no_rom) { rgui_handle_t *rgui = (rgui_handle_t*)data; +#ifdef HAVE_DYNAMIC libretro_free_system_info(&rgui->info); if (!path_is_directory(g_settings.libretro)) { libretro_get_system_info(g_settings.libretro, &rgui->info, load_no_rom); +#endif // Keep track of info for the currently selected core. if (rgui->core_info) { @@ -62,9 +63,10 @@ static void menu_update_system_info(void *data, bool *load_no_rom) RARCH_LOG(" Permissions: %s\n", info->permissions); } } +#ifdef HAVE_DYNAMIC } -} #endif +} //forward decl static int menu_iterate_func(void *data, unsigned action); @@ -369,9 +371,7 @@ static void menu_update_libretro_info(void) if (*rgui->libretro_dir) rgui->core_info = core_info_list_new(rgui->libretro_dir); -#ifdef HAVE_DYNAMIC menu_update_system_info(rgui, NULL); -#endif } void load_menu_game_prepare_dummy(void)