mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 15:32:01 +00:00
Add support for TGDB Rating
This commit is contained in:
parent
2251517774
commit
ab413672a9
@ -67,6 +67,7 @@
|
||||
#define DB_CURSOR_EDGE_MAGAZINE_RATING 0xd30dc4feU
|
||||
#define DB_CURSOR_EDGE_MAGAZINE_ISSUE 0xa0f30d42U
|
||||
#define DB_CURSOR_FAMITSU_MAGAZINE_RATING 0x0a50ca62U
|
||||
#define DB_CURSOR_TGDB_RATING 0x8d61458aU
|
||||
#define DB_CURSOR_MAX_USERS 0x1084ff77U
|
||||
#define DB_CURSOR_RELEASEDATE_MONTH 0x790ad76cU
|
||||
#define DB_CURSOR_RELEASEDATE_YEAR 0x7fd06ed7U
|
||||
@ -308,6 +309,9 @@ static int database_cursor_iterate(libretrodb_cursor_t *cur,
|
||||
case DB_CURSOR_FAMITSU_MAGAZINE_RATING:
|
||||
db_info->famitsu_magazine_rating = val->val.uint_;
|
||||
break;
|
||||
case DB_CURSOR_TGDB_RATING:
|
||||
db_info->tgdb_rating = val->val.uint_;
|
||||
break;
|
||||
case DB_CURSOR_MAX_USERS:
|
||||
db_info->max_users = val->val.uint_;
|
||||
break;
|
||||
|
@ -85,6 +85,7 @@ typedef struct
|
||||
unsigned max_users;
|
||||
unsigned releasemonth;
|
||||
unsigned releaseyear;
|
||||
unsigned tgdb_rating;
|
||||
int analog_supported;
|
||||
int rumble_supported;
|
||||
int coop_supported;
|
||||
|
@ -565,6 +565,7 @@ dat_converter_rdb_mappings_t rdb_mappings[] =
|
||||
{"origin", "origin", DAT_CONVERTER_RDB_TYPE_STRING},
|
||||
|
||||
{"coop", "coop", DAT_CONVERTER_RDB_TYPE_UINT},
|
||||
{"tgdb_rating", "tgdb_rating", DAT_CONVERTER_RDB_TYPE_UINT},
|
||||
|
||||
{"rom.crc", "crc", DAT_CONVERTER_RDB_TYPE_HEX},
|
||||
{"rom.md5", "md5", DAT_CONVERTER_RDB_TYPE_HEX},
|
||||
|
@ -494,6 +494,8 @@ static const char *menu_hash_to_str_us_label(uint32_t hash)
|
||||
return "rdb_entry_edge_magazine_review";
|
||||
case MENU_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING:
|
||||
return "rdb_entry_famitsu_magazine_rating";
|
||||
case MENU_LABEL_RDB_ENTRY_TGDB_RATING:
|
||||
return "rdb_entry_tgdb_rating";
|
||||
case MENU_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE:
|
||||
return "rdb_entry_edge_magazine_issue";
|
||||
case MENU_LABEL_RDB_ENTRY_RELEASE_MONTH:
|
||||
|
@ -429,6 +429,8 @@ static const char *menu_hash_to_str_us_label(uint32_t hash)
|
||||
return "rdb_entry_edge_magazine_review";
|
||||
case MENU_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING:
|
||||
return "rdb_entry_famitsu_magazine_rating";
|
||||
case MENU_LABEL_RDB_ENTRY_TGDB_RATING:
|
||||
return "rdb_entry_tgdb_rating";
|
||||
case MENU_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE:
|
||||
return "rdb_entry_edge_magazine_issue";
|
||||
case MENU_LABEL_RDB_ENTRY_RELEASE_MONTH:
|
||||
|
@ -1305,6 +1305,14 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
|
||||
info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
if (db_info_entry->tgdb_rating)
|
||||
{
|
||||
if (create_string_list_rdb_entry_int("TGDB Rating",
|
||||
menu_hash_to_str(MENU_LABEL_RDB_ENTRY_TGDB_RATING),
|
||||
db_info_entry->tgdb_rating,
|
||||
info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
if (db_info_entry->famitsu_magazine_rating)
|
||||
{
|
||||
if (create_string_list_rdb_entry_int("Famitsu Magazine Rating",
|
||||
|
@ -578,6 +578,7 @@ extern "C" {
|
||||
#define MENU_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE 0xd5706415U
|
||||
#define MENU_LABEL_RDB_ENTRY_EDGE_MAGAZINE_REVIEW 0x977f6fdeU
|
||||
#define MENU_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING 0x01a50315U
|
||||
#define MENU_LABEL_RDB_ENTRY_TGDB_RATING 0x225a9d72U
|
||||
#define MENU_LABEL_RDB_ENTRY_RELEASE_MONTH 0xad2f2c54U
|
||||
#define MENU_LABEL_VALUE_RDB_ENTRY_RELEASE_MONTH 0xb68af36aU
|
||||
#define MENU_LABEL_RDB_ENTRY_RELEASE_YEAR 0x14c9c6bfU
|
||||
|
Loading…
x
Reference in New Issue
Block a user