Add entries

This commit is contained in:
twinaphex 2015-01-27 19:41:35 +01:00
parent 5bb55b9ce9
commit 47427d656b
3 changed files with 12 additions and 0 deletions

View File

@ -90,6 +90,8 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
db_info->max_users = 0;
db_info->releasemonth = 0;
db_info->releaseyear = 0;
db_info->analog_supported = 0;
db_info->rumble_supported = 0;
for (j = 0; j < item.map.len; j++)
{
@ -143,6 +145,12 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
if (!strcmp(key->string.buff, "releaseyear"))
db_info->releaseyear = val->uint_;
if (!strcmp(key->string.buff, "rumble"))
db_info->rumble_supported = val->uint_;
if (!strcmp(key->string.buff, "analog"))
db_info->analog_supported = val->uint_;
}
i++;
}

View File

@ -43,6 +43,8 @@ typedef struct
unsigned max_users;
unsigned releasemonth;
unsigned releaseyear;
unsigned analog_supported;
unsigned rumble_supported;
void *userdata;
} database_info_t;

View File

@ -90,6 +90,8 @@ int menu_database_print_info(const char *path,
RARCH_LOG("PEGI Rating: %s\n", db_info_entry->pegi_rating);
if (db_info_entry->cero_rating)
RARCH_LOG("CERO Rating: %s\n", db_info_entry->cero_rating);
RARCH_LOG("Analog supported: %s\n", db_info_entry->analog_supported ? "true" : "false");
RARCH_LOG("Rumble supported: %s\n", db_info_entry->rumble_supported ? "true" : "false");
RARCH_LOG("\n\n");
}