menu_displaylist_parse_database_entry - use menu_database_build_query

This commit is contained in:
twinaphex 2015-05-24 03:23:28 +02:00
parent 344fe41c53
commit 5e9a3631c5
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,9 @@ int menu_database_build_query(
strlcpy(query, "{'", len);
if (!strcmp(label, "deferred_cursor_manager_list_rdb_entry_publisher"))
if (!strcmp(label, "displaylist_parse_database_entry"))
strlcat(query, "name", len);
else if (!strcmp(label, "deferred_cursor_manager_list_rdb_entry_publisher"))
strlcat(query, "publisher", len);
else if (!strcmp(label, "deferred_cursor_manager_list_rdb_entry_developer"))
strlcat(query, "developer", len);

View File

@ -910,9 +910,7 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
if (!menu)
return -1;
strlcpy(query, "{'name':\"", sizeof(query));
strlcat(query, info->path_b, sizeof(query));
strlcat(query, "\"}", sizeof(query));
menu_database_build_query(query, sizeof(query), "displaylist_parse_database_entry", info->path_b);
if (!(db_info = database_info_list_new(info->path, query)))
return -1;