From 85cd1ee42447a53693e216d7846ee1b3a85db40f Mon Sep 17 00:00:00 2001 From: k2-git Date: Sat, 22 Oct 2022 00:22:40 +0900 Subject: [PATCH] ui: Added support for shows localised system name in Favorites. (#10455) --- src/frontend/mame/ui/selgame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/mame/ui/selgame.cpp b/src/frontend/mame/ui/selgame.cpp index bcdd49239cc..3ae7903b514 100644 --- a/src/frontend/mame/ui/selgame.cpp +++ b/src/frontend/mame/ui/selgame.cpp @@ -409,6 +409,7 @@ void menu_select_game::populate(float &customtop, float &custombottom) [this, &have_prev_selected, &old_item_selected, curitem = 0] (ui_software_info const &info) mutable { have_prev_selected = have_prev_selected || (&info == m_prev_selected); + ui_system_info const &elem = m_persistent_data.systems()[driver_list::find(info.driver->name)]; if (info.startempty) { if (old_item_selected == -1 && info.shortname == reselect_last::driver()) @@ -422,13 +423,13 @@ void menu_select_game::populate(float &customtop, float &custombottom) cloneof = false; } - item_append(info.longname, cloneof ? FLAG_INVERT : 0, (void *)&info); + item_append(elem.description, cloneof ? FLAG_INVERT : 0, (void *)&info); } else { if (old_item_selected == -1 && info.shortname == reselect_last::driver()) old_item_selected = curitem; - item_append(info.longname, info.devicetype, info.parentname.empty() ? 0 : FLAG_INVERT, (void *)&info); + item_append(elem.description, info.devicetype, info.parentname.empty() ? 0 : FLAG_INVERT, (void *)&info); } curitem++; });