Merge pull request #13 from flathub/249

Don't use system name for non-system items
This commit is contained in:
jflatt 2022-10-28 09:04:51 -07:00 committed by GitHub
commit 5a7314fae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -83,3 +83,5 @@ modules:
path: floppy.patch
- type: patch
path: sound.patch
- type: patch
path: selgame.patch

26
selgame.patch Normal file
View 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++;
});