fix core names in menu for consoles

This commit is contained in:
Toad King 2014-01-12 14:39:31 -05:00
parent afd9ad779a
commit 084e31f661

View File

@ -211,7 +211,7 @@ bool core_info_list_get_display_name(core_info_list_t *core_info_list, const cha
for (i = 0; i < core_info_list->count; i++) for (i = 0; i < core_info_list->count; i++)
{ {
const core_info_t *info = &core_info_list->list[i]; const core_info_t *info = &core_info_list->list[i];
if (!strcmp(info->path, path) && info->display_name) if (!strcmp(path_basename(info->path), path_basename(path)) && info->display_name)
{ {
strlcpy(buf, info->display_name, size); strlcpy(buf, info->display_name, size);
return true; return true;