Fallback in RGUI if libretro_path isn't set.

This commit is contained in:
Themaister 2013-04-14 16:34:42 +02:00
parent 5e45c31f06
commit 829840b415

View File

@ -1543,8 +1543,10 @@ static int rgui_settings_iterate(rgui_handle_t *rgui, rgui_action_t action)
{
if (path_is_directory(g_settings.libretro))
strlcpy(rgui->libretro_dir, g_settings.libretro, sizeof(rgui->libretro_dir));
else
else if (*g_settings.libretro)
fill_pathname_basedir(rgui->libretro_dir, g_settings.libretro, sizeof(rgui->libretro_dir));
else
*rgui->libretro_dir = '\0';
label = rgui->libretro_dir;
}
#elif defined(HAVE_LIBRETRO_MANAGEMENT)