mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
GRAPHICS: MACGUI: fix createSubMenuFromString.
This commit is contained in:
parent
ee8e3225bf
commit
c4f7848084
@ -750,7 +750,8 @@ void MacMenu::createSubMenuFromString(int id, const char *str, int commandId) {
|
||||
|
||||
Common::String tmpitem(item);
|
||||
tmpitem.trim();
|
||||
if (tmpitem.size() > 0 && tmpitem[0] == '(') {
|
||||
// is that any places locate a parenthese will disable the item, or only the first char and last char counts.
|
||||
if (tmpitem.size() > 0 && (tmpitem[0] == '(' || tmpitem.lastChar() == '(')) {
|
||||
enabled = false;
|
||||
|
||||
for (uint j = 0; j < item.size(); j++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user