summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame
diff options
context:
space:
mode:
author k2-git <k2-git@users.noreply.github.com>2022-10-22 00:22:40 +0900
committer GitHub <noreply@github.com>2022-10-22 02:22:40 +1100
commit85cd1ee42447a53693e216d7846ee1b3a85db40f (patch)
treec1197ef32988ed36cb9fbeeaf5597d311893cd70 /src/frontend/mame
parent0edeea4869d97db3b39b2ebf1e585f17d627903b (diff)
ui: Added support for shows localised system name in Favorites. (#10455)
Diffstat (limited to 'src/frontend/mame')
-rw-r--r--src/frontend/mame/ui/selgame.cpp5
1 files 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++;
});