mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Start using libretro_dir for RARCH_CONSOLE too
This commit is contained in:
parent
85d18b77d8
commit
79631ece8d
@ -409,19 +409,22 @@ static void menu_init_history(void)
|
||||
|
||||
static void menu_update_libretro_info(void)
|
||||
{
|
||||
#ifdef HAVE_DYNAMIC
|
||||
*rgui->libretro_dir = '\0';
|
||||
#ifdef HAVE_DYNAMIC
|
||||
libretro_free_system_info(&rgui->info);
|
||||
#endif
|
||||
|
||||
if (path_is_directory(g_settings.libretro))
|
||||
strlcpy(rgui->libretro_dir, g_settings.libretro, sizeof(rgui->libretro_dir));
|
||||
else if (*g_settings.libretro)
|
||||
{
|
||||
fill_pathname_basedir(rgui->libretro_dir, g_settings.libretro, sizeof(rgui->libretro_dir));
|
||||
#ifdef HAVE_DYNAMIC
|
||||
libretro_get_system_info(g_settings.libretro, &rgui->info, NULL);
|
||||
}
|
||||
#else
|
||||
retro_get_system_info(&rgui->info);
|
||||
retro_get_system_info(&rgui->info);
|
||||
#endif
|
||||
}
|
||||
|
||||
core_info_list_free(rgui->core_info);
|
||||
rgui->core_info = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user