From b77353e3481d2421020916714832c7155e62f0b8 Mon Sep 17 00:00:00 2001 From: radius Date: Sun, 12 Jul 2015 03:15:42 -0500 Subject: [PATCH] add system name to core updater list --- core_info.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core_info.c b/core_info.c index 112ed40ada..535a0c5c1b 100644 --- a/core_info.c +++ b/core_info.c @@ -380,6 +380,7 @@ bool core_info_list_get_display_name(core_info_list_t *core_info_list, bool core_info_get_display_name(const char *path, char *s, size_t len) { char *core_name = NULL; + char *system_name = NULL; config_file_t *conf = NULL; if (!path_file_exists(path)) @@ -393,6 +394,9 @@ bool core_info_get_display_name(const char *path, char *s, size_t len) config_get_string(conf, "corename", &core_name); + config_get_string(conf, "systemname", + &system_name); + config_file_free(conf); if (!core_name) @@ -400,7 +404,10 @@ bool core_info_get_display_name(const char *path, char *s, size_t len) if (!conf) goto error; - strlcpy(s, core_name, len); + if(system_name) + snprintf(s, len,"%s (%s)",core_name, system_name); + else + snprintf(s, len,"%s",core_name); free(core_name);