From 20f2c14c37f67901063acde92033d80546d94638 Mon Sep 17 00:00:00 2001 From: Jason Flatt Date: Fri, 28 Oct 2022 08:44:12 -0700 Subject: [PATCH] Don't use system name for non-system items --- org.mamedev.MAME.yaml | 2 ++ selgame.patch | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 selgame.patch diff --git a/org.mamedev.MAME.yaml b/org.mamedev.MAME.yaml index ba7e5c3..ea39f6c 100644 --- a/org.mamedev.MAME.yaml +++ b/org.mamedev.MAME.yaml @@ -83,3 +83,5 @@ modules: path: floppy.patch - type: patch path: sound.patch + - type: patch + path: selgame.patch diff --git a/selgame.patch b/selgame.patch new file mode 100644 index 0000000..7702cda --- /dev/null +++ b/selgame.patch @@ -0,0 +1,26 @@ +diff --git a/src/frontend/mame/ui/selgame.cpp b/src/frontend/mame/ui/selgame.cpp +index 3ae7903b514..f944080fa9e 100644 +--- a/src/frontend/mame/ui/selgame.cpp ++++ b/src/frontend/mame/ui/selgame.cpp +@@ -423,13 +423,19 @@ void menu_select_game::populate(float &customtop, float &custombottom) + cloneof = false; + } + +- item_append(elem.description, cloneof ? FLAG_INVERT : 0, (void *)&info); ++ item_append(info.devicetype.empty() ? elem.description : info.longname, ++ cloneof ? FLAG_INVERT : 0, ++ (void *)&info); + } + else + { + if (old_item_selected == -1 && info.shortname == reselect_last::driver()) + old_item_selected = curitem; +- item_append(elem.description, info.devicetype, info.parentname.empty() ? 0 : FLAG_INVERT, (void *)&info); ++ ++ item_append(info.devicetype.empty() ? elem.description : info.longname, ++ info.devicetype, ++ info.parentname.empty() ? 0 : FLAG_INVERT, ++ (void *)&info); + } + curitem++; + });