change to display name, looks better

This commit is contained in:
radius 2015-07-12 03:18:24 -05:00
parent b77353e348
commit b7e2755e2b

View File

@ -380,7 +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;
char *display_name = NULL;
config_file_t *conf = NULL;
if (!path_file_exists(path))
@ -394,8 +394,8 @@ 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_get_string(conf, "display_name",
&display_name);
config_file_free(conf);
@ -404,8 +404,8 @@ bool core_info_get_display_name(const char *path, char *s, size_t len)
if (!conf)
goto error;
if(system_name)
snprintf(s, len,"%s (%s)",core_name, system_name);
if(display_name)
snprintf(s, len,"%s (%s)",core_name, display_name);
else
snprintf(s, len,"%s",core_name);