mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Add authors to core_info.c
This commit is contained in:
parent
3124dff2a3
commit
460533aa53
@ -76,6 +76,10 @@ core_info_list_t *core_info_list_new(const char *modules_path)
|
||||
if (config_get_string(core_info[i].data, "supported_extensions", &core_info[i].supported_extensions) &&
|
||||
core_info[i].supported_extensions)
|
||||
core_info[i].supported_extensions_list = string_split(core_info[i].supported_extensions, "|");
|
||||
|
||||
if (config_get_string(core_info[i].data, "authors", &core_info[i].authors) &&
|
||||
core_info[i].authors)
|
||||
core_info[i].authors_list = string_split(core_info[i].authors, "|");
|
||||
}
|
||||
|
||||
if (!core_info[i].display_name)
|
||||
@ -129,7 +133,9 @@ void core_info_list_free(core_info_list_t *core_info_list)
|
||||
free(core_info_list->list[i].path);
|
||||
free(core_info_list->list[i].display_name);
|
||||
free(core_info_list->list[i].supported_extensions);
|
||||
free(core_info_list->list[i].authors);
|
||||
string_list_free(core_info_list->list[i].supported_extensions_list);
|
||||
string_list_free(core_info_list->list[i].authors_list);
|
||||
config_file_free(core_info_list->list[i].data);
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,9 @@ typedef struct {
|
||||
config_file_t *data;
|
||||
char *display_name;
|
||||
char *supported_extensions;
|
||||
char *authors;
|
||||
struct string_list *supported_extensions_list;
|
||||
struct string_list *authors_list;
|
||||
} core_info_t;
|
||||
|
||||
typedef struct {
|
||||
|
Loading…
Reference in New Issue
Block a user