(Menu) Hash updates

This commit is contained in:
twinaphex 2015-06-19 21:41:54 +02:00
parent a3da35c0b3
commit b497b28a56
2 changed files with 28 additions and 7 deletions

View File

@ -1024,7 +1024,8 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
if (db_info_entry->famitsu_magazine_rating)
{
if (create_string_list_rdb_entry_int("Famitsu Magazine Rating",
"rdb_entry_famitsu_magazine_rating", db_info_entry->famitsu_magazine_rating,
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING),
db_info_entry->famitsu_magazine_rating,
info->path, info->list) == -1)
goto error;
}
@ -1069,37 +1070,43 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
}
if (db_info_entry->bbfc_rating)
{
if (create_string_list_rdb_entry_string("BBFC Rating", "rdb_entry_bbfc_rating",
if (create_string_list_rdb_entry_string("BBFC Rating",
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_BBFC_RATING),
db_info_entry->bbfc_rating, info->path, info->list) == -1)
goto error;
}
if (db_info_entry->esrb_rating)
{
if (create_string_list_rdb_entry_string("ESRB Rating", "rdb_entry_esrb_rating",
if (create_string_list_rdb_entry_string("ESRB Rating",
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_ESRB_RATING),
db_info_entry->esrb_rating, info->path, info->list) == -1)
goto error;
}
if (db_info_entry->elspa_rating)
{
if (create_string_list_rdb_entry_string("ELSPA Rating", "rdb_entry_elspa_rating",
if (create_string_list_rdb_entry_string("ELSPA Rating",
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_ELSPA_RATING),
db_info_entry->elspa_rating, info->path, info->list) == -1)
goto error;
}
if (db_info_entry->pegi_rating)
{
if (create_string_list_rdb_entry_string("PEGI Rating", "rdb_entry_pegi_rating",
if (create_string_list_rdb_entry_string("PEGI Rating",
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_PEGI_RATING),
db_info_entry->pegi_rating, info->path, info->list) == -1)
goto error;
}
if (db_info_entry->enhancement_hw)
{
if (create_string_list_rdb_entry_string("Enhancement Hardware", "rdb_entry_enhancement_hw",
if (create_string_list_rdb_entry_string("Enhancement Hardware",
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_ENHANCEMENT_HW),
db_info_entry->enhancement_hw, info->path, info->list) == -1)
goto error;
}
if (db_info_entry->cero_rating)
{
if (create_string_list_rdb_entry_string("CERO Rating", "rdb_entry_cero_rating",
if (create_string_list_rdb_entry_string("CERO Rating",
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_CERO_RATING),
db_info_entry->cero_rating, info->path, info->list) == -1)
goto error;
}

View File

@ -257,18 +257,32 @@ static const char *menu_hash_to_str_english(uint32_t hash)
return "rdb_entry_name";
case MENU_LABEL_RDB_ENTRY_EDGE_MAGAZINE_RATING:
return "rdb_entry_edge_magazine_rating";
case MENU_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING:
return "rdb_entry_famitsu_magazine_rating";
case MENU_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE:
return "rdb_entry_edge_magazine_issue";
case MENU_LABEL_RDB_ENTRY_RELEASE_MONTH:
return "rdb_entry_releasemonth";
case MENU_LABEL_RDB_ENTRY_RELEASE_YEAR:
return "rdb_entry_releaseyear";
case MENU_LABEL_RDB_ENTRY_ENHANCEMENT_HW:
return "rdb_entry_enhancement_hw";
case MENU_LABEL_RDB_ENTRY_SHA1:
return "rdb_entry_sha1";
case MENU_LABEL_RDB_ENTRY_CRC32:
return "rdb_entry_crc32";
case MENU_LABEL_RDB_ENTRY_MD5:
return "rdb_entry_md5";
case MENU_LABEL_RDB_ENTRY_BBFC_RATING:
return "rdb_entry_bbfc_rating";
case MENU_LABEL_RDB_ENTRY_ESRB_RATING:
return "rdb_entry_esrb_rating";
case MENU_LABEL_RDB_ENTRY_ELSPA_RATING:
return "rdb_entry_elspa_rating";
case MENU_LABEL_RDB_ENTRY_PEGI_RATING:
return "rdb_entry_pegi_rating";
case MENU_LABEL_RDB_ENTRY_CERO_RATING:
return "rdb_entry_cero_rating";
case MENU_LABEL_CONFIGURATIONS:
return "configurations";
case MENU_LABEL_VALUE_CONFIGURATIONS: