mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Updates
This commit is contained in:
parent
685b270ae0
commit
774b350e9e
@ -85,6 +85,7 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
|
||||
db_info->pegi_rating = NULL;
|
||||
db_info->cero_rating = NULL;
|
||||
db_info->edge_magazine_review = NULL;
|
||||
db_info->enhancement_hw = NULL;
|
||||
db_info->edge_magazine_rating = 0;
|
||||
db_info->edge_magazine_issue = 0;
|
||||
db_info->max_users = 0;
|
||||
@ -128,6 +129,9 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
|
||||
if (!strcmp(key->string.buff, "pegi_rating"))
|
||||
db_info->pegi_rating = strdup(val->string.buff);
|
||||
|
||||
if (!strcmp(key->string.buff, "enhancement_hw"))
|
||||
db_info->enhancement_hw = strdup(val->string.buff);
|
||||
|
||||
if (!strcmp(key->string.buff, "edge_review"))
|
||||
db_info->edge_magazine_review = strdup(val->string.buff);
|
||||
|
||||
@ -198,6 +202,8 @@ void database_info_list_free(database_info_list_t *database_info_list)
|
||||
free(info->cero_rating);
|
||||
if (info->pegi_rating)
|
||||
free(info->pegi_rating);
|
||||
if (info->enhancement_hw)
|
||||
free(info->enhancement_hw);
|
||||
if (info->elspa_rating)
|
||||
free(info->elspa_rating);
|
||||
if (info->esrb_rating)
|
||||
|
@ -38,6 +38,7 @@ typedef struct
|
||||
char *esrb_rating;
|
||||
char *pegi_rating;
|
||||
char *cero_rating;
|
||||
char *enhancement_hw;
|
||||
unsigned edge_magazine_rating;
|
||||
unsigned edge_magazine_issue;
|
||||
unsigned max_users;
|
||||
|
@ -194,6 +194,7 @@ function get_value()
|
||||
edge_issue = uint(tonumber(t.edge_issue)),
|
||||
edge_review = t.edge_review,
|
||||
|
||||
enhancement_hw = t.enhancement_hw,
|
||||
barcode = t.barcode,
|
||||
esrb_rating = t.esrb_rating,
|
||||
elspa_rating = t.elspa_rating,
|
||||
|
@ -948,6 +948,12 @@ static int deferred_push_rdb_entry_detail(void *data, void *userdata,
|
||||
db_info_entry->pegi_rating, path, list) == -1)
|
||||
return -1;
|
||||
}
|
||||
if (db_info_entry->enhancement_hw)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string("Enhancement Hardware", "rdb_entry_enhancement_hw",
|
||||
db_info_entry->enhancement_hw, path, list) == -1)
|
||||
return -1;
|
||||
}
|
||||
if (db_info_entry->cero_rating)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string("CERO Rating", "rdb_entry_cero_rating",
|
||||
@ -2300,6 +2306,8 @@ static int deferred_push_cursor_manager_list_deferred_query_subsearch(
|
||||
strlcat(query, "elspa_rating", sizeof(query));
|
||||
else if (!strcmp(label, "deferred_cursor_manager_list_rdb_entry_pegi_rating"))
|
||||
strlcat(query, "pegi_rating", sizeof(query));
|
||||
else if (!strcmp(label, "deferred_cursor_manager_list_rdb_entry_enhancement_hw"))
|
||||
strlcat(query, "enhancement_hw", sizeof(query));
|
||||
else if (!strcmp(label, "deferred_cursor_manager_list_rdb_entry_cero_rating"))
|
||||
strlcat(query, "cero_rating", sizeof(query));
|
||||
else if (!strcmp(label, "deferred_cursor_manager_list_rdb_entry_edge_magazine_rating"))
|
||||
@ -3832,6 +3840,7 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs,
|
||||
!(strcmp(elem0, "rdb_entry_developer")) ||
|
||||
!(strcmp(elem0, "rdb_entry_origin")) ||
|
||||
!(strcmp(elem0, "rdb_entry_franchise")) ||
|
||||
!(strcmp(elem0, "rdb_entry_enhancement_hw")) ||
|
||||
!(strcmp(elem0, "rdb_entry_esrb_rating")) ||
|
||||
!(strcmp(elem0, "rdb_entry_bbfc_rating")) ||
|
||||
!(strcmp(elem0, "rdb_entry_elspa_rating")) ||
|
||||
@ -4293,6 +4302,7 @@ static void menu_entries_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs,
|
||||
!strcmp(label, "deferred_cursor_manager_list_rdb_entry_developer") ||
|
||||
!strcmp(label, "deferred_cursor_manager_list_rdb_entry_origin") ||
|
||||
!strcmp(label, "deferred_cursor_manager_list_rdb_entry_franchise") ||
|
||||
!strcmp(label, "deferred_cursor_manager_list_rdb_entry_enhancement_hw") ||
|
||||
!strcmp(label, "deferred_cursor_manager_list_rdb_entry_esrb_rating") ||
|
||||
!strcmp(label, "deferred_cursor_manager_list_rdb_entry_bbfc_rating") ||
|
||||
!strcmp(label, "deferred_cursor_manager_list_rdb_entry_elspa_rating") ||
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include "net_compat.h"
|
||||
#include "netplay.h"
|
||||
#include "retroarch_logger.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user