mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
added more categories to the explore menu
This commit is contained in:
parent
fe943a65e8
commit
6f90b24f72
132
database_info.c
132
database_info.c
@ -209,6 +209,76 @@ static int database_cursor_iterate(libretrodb_cursor_t *cur,
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->genre = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "category"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->category = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "language"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->language = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "region"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->region = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "score"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->score = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "media"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->media = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "controls"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->controls = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "artstyle"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->artstyle = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "gameplay"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->gameplay = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "narrative"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->narrative = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "pacing"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->pacing = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "perspective"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->perspective = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "setting"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->setting = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "visual"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->visual = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "vehicular"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
db_info->vehicular = strdup(val_string);
|
||||
}
|
||||
else if (string_is_equal(str, "origin"))
|
||||
{
|
||||
if (!string_is_empty(val_string))
|
||||
@ -274,6 +344,12 @@ static int database_cursor_iterate(libretrodb_cursor_t *cur,
|
||||
db_info->releaseyear = (unsigned)val->val.uint_;
|
||||
else if (string_is_equal(str, "rumble"))
|
||||
db_info->rumble_supported = (int)val->val.uint_;
|
||||
else if (string_is_equal(str, "achievements"))
|
||||
db_info->achievements = (int)val->val.uint_;
|
||||
else if (string_is_equal(str, "console_exclusive"))
|
||||
db_info->console_exclusive = (int)val->val.uint_;
|
||||
else if (string_is_equal(str, "platform_exclusive"))
|
||||
db_info->platform_exclusive = (int)val->val.uint_;
|
||||
else if (string_is_equal(str, "coop"))
|
||||
db_info->coop_supported = (int)val->val.uint_;
|
||||
else if (string_is_equal(str, "analog"))
|
||||
@ -504,6 +580,34 @@ database_info_list_t *database_info_list_new(
|
||||
free(db_info.franchise);
|
||||
if (db_info.genre)
|
||||
free(db_info.genre);
|
||||
if (db_info.category)
|
||||
free(db_info.category);
|
||||
if (db_info.language)
|
||||
free(db_info.language);
|
||||
if (db_info.region)
|
||||
free(db_info.region);
|
||||
if (db_info.score)
|
||||
free(db_info.score);
|
||||
if (db_info.media)
|
||||
free(db_info.media);
|
||||
if (db_info.controls)
|
||||
free(db_info.controls);
|
||||
if (db_info.artstyle)
|
||||
free(db_info.artstyle);
|
||||
if (db_info.gameplay)
|
||||
free(db_info.gameplay);
|
||||
if (db_info.narrative)
|
||||
free(db_info.narrative);
|
||||
if (db_info.pacing)
|
||||
free(db_info.pacing);
|
||||
if (db_info.perspective)
|
||||
free(db_info.perspective);
|
||||
if (db_info.setting)
|
||||
free(db_info.setting);
|
||||
if (db_info.visual)
|
||||
free(db_info.visual);
|
||||
if (db_info.vehicular)
|
||||
free(db_info.vehicular);
|
||||
if (db_info.name)
|
||||
free(db_info.name);
|
||||
if (db_info.origin)
|
||||
@ -590,6 +694,34 @@ void database_info_list_free(database_info_list_t *database_info_list)
|
||||
free(info->serial);
|
||||
if (info->genre)
|
||||
free(info->genre);
|
||||
if (info->category)
|
||||
free(info->category);
|
||||
if (info->language)
|
||||
free(info->language);
|
||||
if (info->region)
|
||||
free(info->region);
|
||||
if (info->score)
|
||||
free(info->score);
|
||||
if (info->media)
|
||||
free(info->media);
|
||||
if (info->controls)
|
||||
free(info->controls);
|
||||
if (info->artstyle)
|
||||
free(info->artstyle);
|
||||
if (info->gameplay)
|
||||
free(info->gameplay);
|
||||
if (info->narrative)
|
||||
free(info->narrative);
|
||||
if (info->pacing)
|
||||
free(info->pacing);
|
||||
if (info->perspective)
|
||||
free(info->perspective);
|
||||
if (info->setting)
|
||||
free(info->setting);
|
||||
if (info->visual)
|
||||
free(info->visual);
|
||||
if (info->vehicular)
|
||||
free(info->vehicular);
|
||||
if (info->description)
|
||||
free(info->description);
|
||||
if (info->publisher)
|
||||
|
@ -85,6 +85,23 @@ typedef struct
|
||||
char *serial;
|
||||
char *description;
|
||||
char *genre;
|
||||
int achievements;
|
||||
char *category;
|
||||
char *language;
|
||||
char *region;
|
||||
int console_exclusive;
|
||||
int platform_exclusive;
|
||||
char *score;
|
||||
char *media;
|
||||
char *controls;
|
||||
char *artstyle;
|
||||
char *gameplay;
|
||||
char *narrative;
|
||||
char *pacing;
|
||||
char *perspective;
|
||||
char *setting;
|
||||
char *visual;
|
||||
char *vehicular;
|
||||
char *publisher;
|
||||
struct string_list *developer;
|
||||
char *origin;
|
||||
|
@ -2596,6 +2596,78 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_GENRE,
|
||||
"rdb_entry_genre"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_ACHIEVEMENTS,
|
||||
"rdb_entry_achievements"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_CATEGORY,
|
||||
"rdb_entry_category"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_LANGUAGE,
|
||||
"rdb_entry_language"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_REGION,
|
||||
"rdb_entry_region"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_CONSOLE_EXCLUSIVE,
|
||||
"rdb_entry_console_exclusive"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_PLATFORM_EXCLUSIVE,
|
||||
"rdb_entry_platform_exclusive"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_RUMBLE,
|
||||
"rdb_entry_rumble"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_SCORE,
|
||||
"rdb_entry_score"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_MEDIA,
|
||||
"rdb_entry_media"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_CONTROLS,
|
||||
"rdb_entry_controls"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_ARTSTYLE,
|
||||
"rdb_entry_artstyle"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_GAMEPLAY,
|
||||
"rdb_entry_gameplay"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_NARRATIVE,
|
||||
"rdb_entry_narrative"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_PACING,
|
||||
"rdb_entry_pacing"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_PERSPECTIVE,
|
||||
"rdb_entry_perspective"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_SETTING,
|
||||
"rdb_entry_setting"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_VISUAL,
|
||||
"rdb_entry_visual"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_VEHICULAR,
|
||||
"rdb_entry_vehicular"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_MAX_USERS,
|
||||
"rdb_entry_max_users"
|
||||
|
@ -880,6 +880,74 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_GENRE,
|
||||
"Genre"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ACHIEVEMENTS,
|
||||
"Achievements"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CATEGORY,
|
||||
"Category"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_LANGUAGE,
|
||||
"Language"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_REGION,
|
||||
"Region"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CONSOLE_EXCLUSIVE,
|
||||
"Console exclusive"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PLATFORM_EXCLUSIVE,
|
||||
"Platform exclusive"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SCORE,
|
||||
"Score"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_MEDIA,
|
||||
"Media"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CONTROLS,
|
||||
"Controls"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ARTSTYLE,
|
||||
"Artstyle"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_GAMEPLAY,
|
||||
"Gameplay"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_NARRATIVE,
|
||||
"Narrative"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PACING,
|
||||
"Pacing"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PERSPECTIVE,
|
||||
"Perspective"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SETTING,
|
||||
"Setting"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_VISUAL,
|
||||
"Visual"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_VEHICULAR,
|
||||
"Vehicular"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PUBLISHER,
|
||||
"Publisher"
|
||||
@ -6565,13 +6633,81 @@ MSG_HASH(
|
||||
"By Genre"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ORIGIN,
|
||||
"By Origin"
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ACHIEVEMENTS,
|
||||
"By Achievements"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CATEGORY,
|
||||
"By Category"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_LANGUAGE,
|
||||
"By Language"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_REGION,
|
||||
"By Region"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CONSOLE_EXCLUSIVE,
|
||||
"By Console exclusive"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PLATFORM_EXCLUSIVE,
|
||||
"By Platform exclusive"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_RUMBLE,
|
||||
"By Rumble"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_SCORE,
|
||||
"By Score"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_MEDIA,
|
||||
"By Media"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CONTROLS,
|
||||
"By Controls"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ARTSTYLE,
|
||||
"By Artstyle"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_GAMEPLAY,
|
||||
"By Gameplay"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_NARRATIVE,
|
||||
"By Narrative"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PACING,
|
||||
"By Pacing"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PERSPECTIVE,
|
||||
"By Perspective"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_SETTING,
|
||||
"By Setting"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_VISUAL,
|
||||
"By Visual"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_VEHICULAR,
|
||||
"By Vehicular"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ORIGIN,
|
||||
"By Origin"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_FRANCHISE,
|
||||
"By Franchise"
|
||||
|
@ -2446,6 +2446,146 @@ static int menu_displaylist_parse_database_entry(menu_handle_t *menu,
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->category)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_CATEGORY,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CATEGORY),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_CATEGORY),
|
||||
db_info_entry->category, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->language)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_LANGUAGE,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_LANGUAGE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_LANGUAGE),
|
||||
db_info_entry->language, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->region)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_REGION,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_REGION),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_REGION),
|
||||
db_info_entry->region, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->score)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_SCORE,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SCORE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_SCORE),
|
||||
db_info_entry->score, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->media)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_MEDIA,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_MEDIA),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_MEDIA),
|
||||
db_info_entry->media, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->controls)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_CONTROLS,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CONTROLS),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_CONTROLS),
|
||||
db_info_entry->controls, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->artstyle)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_ARTSTYLE,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ARTSTYLE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ARTSTYLE),
|
||||
db_info_entry->artstyle, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->gameplay)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_GAMEPLAY,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_GAMEPLAY),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_GAMEPLAY),
|
||||
db_info_entry->gameplay, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->narrative)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_NARRATIVE,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_NARRATIVE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_NARRATIVE),
|
||||
db_info_entry->narrative, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->pacing)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_PACING,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PACING),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_PACING),
|
||||
db_info_entry->pacing, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->perspective)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_PERSPECTIVE,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PERSPECTIVE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_PERSPECTIVE),
|
||||
db_info_entry->perspective, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->setting)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_SETTING,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SETTING),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_SETTING),
|
||||
db_info_entry->setting, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->visual)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_VISUAL,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_VISUAL),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_VISUAL),
|
||||
db_info_entry->visual, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->vehicular)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_VEHICULAR,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_VEHICULAR),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_VEHICULAR),
|
||||
db_info_entry->vehicular, info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->developer)
|
||||
{
|
||||
for (k = 0; k < db_info_entry->developer->size; k++)
|
||||
@ -2670,6 +2810,36 @@ static int menu_displaylist_parse_database_entry(menu_handle_t *menu,
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->achievements == 1)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_ACHIEVEMENTS,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ACHIEVEMENTS),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ACHIEVEMENTS),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TRUE), info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->console_exclusive == 1)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_CONSOLE_EXCLUSIVE,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CONSOLE_EXCLUSIVE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_CONSOLE_EXCLUSIVE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TRUE), info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (db_info_entry->platform_exclusive == 1)
|
||||
{
|
||||
if (create_string_list_rdb_entry_string(
|
||||
MENU_ENUM_LABEL_RDB_ENTRY_PLATFORM_EXCLUSIVE,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PLATFORM_EXCLUSIVE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_PLATFORM_EXCLUSIVE),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TRUE), info->path, info->list) == -1)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!show_advanced_settings)
|
||||
continue;
|
||||
|
||||
|
@ -39,6 +39,25 @@ enum
|
||||
EXPLORE_BY_RELEASEYEAR,
|
||||
EXPLORE_BY_PLAYERCOUNT,
|
||||
EXPLORE_BY_GENRE,
|
||||
|
||||
EXPLORE_BY_ACHIEVEMENTS,
|
||||
EXPLORE_BY_CATEGORY,
|
||||
EXPLORE_BY_LANGUAGE,
|
||||
EXPLORE_BY_CONSOLE_EXCLUSIVE,
|
||||
EXPLORE_BY_PLATFORM_EXCLUSIVE,
|
||||
EXPLORE_BY_RUMBLE,
|
||||
EXPLORE_BY_SCORE,
|
||||
EXPLORE_BY_MEDIA,
|
||||
EXPLORE_BY_CONTROLS,
|
||||
EXPLORE_BY_ARTSTYLE,
|
||||
EXPLORE_BY_GAMEPLAY,
|
||||
EXPLORE_BY_NARRATIVE,
|
||||
EXPLORE_BY_PACING,
|
||||
EXPLORE_BY_PERSPECTIVE,
|
||||
EXPLORE_BY_SETTING,
|
||||
EXPLORE_BY_VISUAL,
|
||||
EXPLORE_BY_VEHICULAR,
|
||||
|
||||
EXPLORE_BY_ORIGIN,
|
||||
EXPLORE_BY_REGION,
|
||||
EXPLORE_BY_FRANCHISE,
|
||||
@ -112,6 +131,25 @@ explore_by_info[EXPLORE_CAT_COUNT] =
|
||||
{ "releaseyear", MENU_ENUM_LABEL_VALUE_EXPLORE_CATEGORY_RELEASE_YEAR, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_RELEASE_YEAR, false, false, true },
|
||||
{ "users", MENU_ENUM_LABEL_VALUE_EXPLORE_CATEGORY_PLAYER_COUNT, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PLAYER_COUNT, false, false, true },
|
||||
{ "genre", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_GENRE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_GENRE, true, false, false },
|
||||
|
||||
{ "achievements", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ACHIEVEMENTS, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ACHIEVEMENTS, false, false, true },
|
||||
{ "category", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CATEGORY, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CATEGORY, true, false, false },
|
||||
{ "language", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_LANGUAGE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_LANGUAGE, true, false, false },
|
||||
{ "console_exclusive", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CONSOLE_EXCLUSIVE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CONSOLE_EXCLUSIVE, false, false, true },
|
||||
{ "platform_exclusive", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PLATFORM_EXCLUSIVE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PLATFORM_EXCLUSIVE, false, false, true },
|
||||
{ "rumble", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RUMBLE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_RUMBLE, false, false, true },
|
||||
{ "score", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SCORE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_SCORE, true, false, false },
|
||||
{ "media", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_MEDIA, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_MEDIA, true, false, false },
|
||||
{ "controls", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CONTROLS, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CONTROLS, true, false, false },
|
||||
{ "artstyle", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ARTSTYLE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ARTSTYLE, true, false, false },
|
||||
{ "gameplay", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_GAMEPLAY, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_GAMEPLAY, true, false, false },
|
||||
{ "narrative", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_NARRATIVE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_NARRATIVE, true, false, false },
|
||||
{ "pacing", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PACING, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PACING, true, false, false },
|
||||
{ "perspective", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PERSPECTIVE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PERSPECTIVE, true, false, false },
|
||||
{ "setting", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SETTING, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_SETTING, true, false, false },
|
||||
{ "visual", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_VISUAL, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_VISUAL, true, false, false },
|
||||
{ "vehicular", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_VEHICULAR, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_VEHICULAR, true, false, false },
|
||||
|
||||
{ "origin", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ORIGIN, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ORIGIN, false, false, false },
|
||||
{ "region", MENU_ENUM_LABEL_VALUE_EXPLORE_CATEGORY_REGION, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_REGION, false, false, false },
|
||||
{ "franchise", MENU_ENUM_LABEL_VALUE_RDB_ENTRY_FRANCHISE, MENU_ENUM_LABEL_VALUE_EXPLORE_BY_FRANCHISE, false, false, false },
|
||||
|
34
msg_hash.h
34
msg_hash.h
@ -2101,6 +2101,23 @@ enum msg_hash_enums
|
||||
MENU_LABEL(RDB_ENTRY_START_CONTENT),
|
||||
MENU_LABEL(RDB_ENTRY_DESCRIPTION),
|
||||
MENU_LABEL(RDB_ENTRY_GENRE),
|
||||
MENU_LABEL(RDB_ENTRY_ACHIEVEMENTS),
|
||||
MENU_LABEL(RDB_ENTRY_CATEGORY),
|
||||
MENU_LABEL(RDB_ENTRY_LANGUAGE),
|
||||
MENU_LABEL(RDB_ENTRY_REGION),
|
||||
MENU_LABEL(RDB_ENTRY_CONSOLE_EXCLUSIVE),
|
||||
MENU_LABEL(RDB_ENTRY_PLATFORM_EXCLUSIVE),
|
||||
MENU_LABEL(RDB_ENTRY_SCORE),
|
||||
MENU_LABEL(RDB_ENTRY_MEDIA),
|
||||
MENU_LABEL(RDB_ENTRY_CONTROLS),
|
||||
MENU_LABEL(RDB_ENTRY_ARTSTYLE),
|
||||
MENU_LABEL(RDB_ENTRY_GAMEPLAY),
|
||||
MENU_LABEL(RDB_ENTRY_NARRATIVE),
|
||||
MENU_LABEL(RDB_ENTRY_PACING),
|
||||
MENU_LABEL(RDB_ENTRY_PERSPECTIVE),
|
||||
MENU_LABEL(RDB_ENTRY_SETTING),
|
||||
MENU_LABEL(RDB_ENTRY_VISUAL),
|
||||
MENU_LABEL(RDB_ENTRY_VEHICULAR),
|
||||
MENU_LABEL(RDB_ENTRY_ENHANCEMENT_HW),
|
||||
MENU_LABEL(RDB_ENTRY_FRANCHISE),
|
||||
MENU_LABEL(RDB_ENTRY_ORIGIN),
|
||||
@ -2142,6 +2159,23 @@ enum msg_hash_enums
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_RELEASE_YEAR,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PLAYER_COUNT,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_GENRE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ACHIEVEMENTS,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CATEGORY,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_LANGUAGE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CONSOLE_EXCLUSIVE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PLATFORM_EXCLUSIVE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_RUMBLE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_SCORE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_MEDIA,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_CONTROLS,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ARTSTYLE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_GAMEPLAY,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_NARRATIVE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PACING,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_PERSPECTIVE,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_SETTING,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_VISUAL,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_VEHICULAR,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_ORIGIN,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_REGION,
|
||||
MENU_ENUM_LABEL_VALUE_EXPLORE_BY_FRANCHISE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user