Add authors to core_info.c

This commit is contained in:
twinaphex 2013-11-08 00:30:00 +01:00
parent 3124dff2a3
commit 460533aa53
2 changed files with 8 additions and 0 deletions

View File

@ -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);
}

View File

@ -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 {