mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 11:10:27 +00:00
menu_displaylist_parse_database_entry - use menu_database_build_query
This commit is contained in:
parent
344fe41c53
commit
5e9a3631c5
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user