mirror of
https://github.com/RetroDECK/org.mamedev.MAME.git
synced 2025-01-19 11:05:37 +00:00
Merge pull request #13 from flathub/249
Don't use system name for non-system items
This commit is contained in:
commit
5a7314fae5
|
@ -83,3 +83,5 @@ modules:
|
||||||
path: floppy.patch
|
path: floppy.patch
|
||||||
- type: patch
|
- type: patch
|
||||||
path: sound.patch
|
path: sound.patch
|
||||||
|
- type: patch
|
||||||
|
path: selgame.patch
|
||||||
|
|
26
selgame.patch
Normal file
26
selgame.patch
Normal file
|
@ -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++;
|
||||||
|
});
|
Loading…
Reference in a new issue