(Menu) Ifdef code for HAVE_LIBRETRODB

This commit is contained in:
twinaphex 2015-06-08 17:03:20 +02:00
parent 2eba39e41d
commit 2b934b43ef

View File

@ -1346,6 +1346,7 @@ static int menu_displaylist_parse_horizontal_list(menu_displaylist_info_t *info)
strlcpy(rpl_basename, item->path, sizeof(rpl_basename));
path_remove_extension(rpl_basename);
#ifdef HAVE_LIBRETRODB
fill_pathname_join(db_path, settings->content_database,
rpl_basename, sizeof(db_path));
strlcat(db_path, ".rdb", sizeof(db_path));
@ -1353,6 +1354,7 @@ static int menu_displaylist_parse_horizontal_list(menu_displaylist_info_t *info)
if (path_file_exists(db_path))
menu_list_push(info->list, path_basename(db_path), "core_database",
MENU_FILE_RDB, 0);
#endif
return 0;
}