diff --git a/core_info.c b/core_info.c index 535a0c5c1b..bd5d1f73e1 100644 --- a/core_info.c +++ b/core_info.c @@ -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);