add system name to core updater list
This commit is contained in:
parent
48068f147a
commit
b77353e348
|
@ -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)
|
bool core_info_get_display_name(const char *path, char *s, size_t len)
|
||||||
{
|
{
|
||||||
char *core_name = NULL;
|
char *core_name = NULL;
|
||||||
|
char *system_name = NULL;
|
||||||
config_file_t *conf = NULL;
|
config_file_t *conf = NULL;
|
||||||
|
|
||||||
if (!path_file_exists(path))
|
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",
|
config_get_string(conf, "corename",
|
||||||
&core_name);
|
&core_name);
|
||||||
|
|
||||||
|
config_get_string(conf, "systemname",
|
||||||
|
&system_name);
|
||||||
|
|
||||||
config_file_free(conf);
|
config_file_free(conf);
|
||||||
|
|
||||||
if (!core_name)
|
if (!core_name)
|
||||||
|
@ -400,7 +404,10 @@ bool core_info_get_display_name(const char *path, char *s, size_t len)
|
||||||
if (!conf)
|
if (!conf)
|
||||||
goto error;
|
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);
|
free(core_name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue