Add entries
This commit is contained in:
parent
5bb55b9ce9
commit
47427d656b
|
@ -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->max_users = 0;
|
||||||
db_info->releasemonth = 0;
|
db_info->releasemonth = 0;
|
||||||
db_info->releaseyear = 0;
|
db_info->releaseyear = 0;
|
||||||
|
db_info->analog_supported = 0;
|
||||||
|
db_info->rumble_supported = 0;
|
||||||
|
|
||||||
for (j = 0; j < item.map.len; j++)
|
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"))
|
if (!strcmp(key->string.buff, "releaseyear"))
|
||||||
db_info->releaseyear = val->uint_;
|
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++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,8 @@ typedef struct
|
||||||
unsigned max_users;
|
unsigned max_users;
|
||||||
unsigned releasemonth;
|
unsigned releasemonth;
|
||||||
unsigned releaseyear;
|
unsigned releaseyear;
|
||||||
|
unsigned analog_supported;
|
||||||
|
unsigned rumble_supported;
|
||||||
void *userdata;
|
void *userdata;
|
||||||
} database_info_t;
|
} database_info_t;
|
||||||
|
|
||||||
|
|
|
@ -90,6 +90,8 @@ int menu_database_print_info(const char *path,
|
||||||
RARCH_LOG("PEGI Rating: %s\n", db_info_entry->pegi_rating);
|
RARCH_LOG("PEGI Rating: %s\n", db_info_entry->pegi_rating);
|
||||||
if (db_info_entry->cero_rating)
|
if (db_info_entry->cero_rating)
|
||||||
RARCH_LOG("CERO Rating: %s\n", 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");
|
RARCH_LOG("\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue