mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Add Categories and System info to 'Core Information'
This commit is contained in:
parent
7686704a5f
commit
f2dd126948
@ -177,6 +177,12 @@ core_info_list_t *core_info_list_new(const char *modules_path)
|
||||
core_info[i].licenses_list =
|
||||
string_split(core_info[i].licenses, "|");
|
||||
|
||||
if (config_get_string(core_info[i].data, "categories",
|
||||
&core_info[i].categories) &&
|
||||
core_info[i].categories)
|
||||
core_info[i].categories_list =
|
||||
string_split(core_info[i].categories, "|");
|
||||
|
||||
if (config_get_string(core_info[i].data, "notes",
|
||||
&core_info[i].notes) &&
|
||||
core_info[i].notes)
|
||||
@ -220,6 +226,7 @@ void core_info_list_free(core_info_list_t *core_info_list)
|
||||
free(info->authors);
|
||||
free(info->permissions);
|
||||
free(info->licenses);
|
||||
free(info->categories);
|
||||
free(info->notes);
|
||||
if (info->supported_extensions_list)
|
||||
string_list_free(info->supported_extensions_list);
|
||||
@ -227,6 +234,7 @@ void core_info_list_free(core_info_list_t *core_info_list)
|
||||
string_list_free(info->note_list);
|
||||
string_list_free(info->permissions_list);
|
||||
string_list_free(info->licenses_list);
|
||||
string_list_free(info->categories_list);
|
||||
config_file_free(info->data);
|
||||
|
||||
for (j = 0; j < info->firmware_count; j++)
|
||||
|
@ -45,7 +45,9 @@ typedef struct
|
||||
char *authors;
|
||||
char *permissions;
|
||||
char *licenses;
|
||||
char *categories;
|
||||
char *notes;
|
||||
struct string_list *categories_list;
|
||||
struct string_list *note_list;
|
||||
struct string_list *supported_extensions_list;
|
||||
struct string_list *authors_list;
|
||||
|
@ -1472,6 +1472,23 @@ static int deferred_push_core_information(void *data, void *userdata,
|
||||
menu_list_push(list, tmp, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
|
||||
if (info->systemname)
|
||||
{
|
||||
snprintf(tmp, sizeof(tmp), "System name: %s",
|
||||
info->systemname);
|
||||
menu_list_push(list, tmp, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
}
|
||||
|
||||
if (info->categories_list)
|
||||
{
|
||||
strlcpy(tmp, "Categories: ", sizeof(tmp));
|
||||
string_list_join_concat(tmp, sizeof(tmp),
|
||||
info->categories_list, ", ");
|
||||
menu_list_push(list, tmp, "",
|
||||
MENU_SETTINGS_CORE_INFO_NONE, 0);
|
||||
}
|
||||
|
||||
if (info->authors_list)
|
||||
{
|
||||
strlcpy(tmp, "Authors: ", sizeof(tmp));
|
||||
|
Loading…
x
Reference in New Issue
Block a user