Skip to content

Commit

Permalink
Merge pull request #9286 from jdgleaver/hide-quick-menu
Browse files Browse the repository at this point in the history
(XMB/Ozone/GLUI) Prevent display of main menu 'Quick Menu' entry when dummy core is loaded
  • Loading branch information
inactive123 authored Aug 13, 2019
2 parents 1772233 + e75911c commit becfff5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions menu/drivers/materialui.c
Original file line number Diff line number Diff line change
Expand Up @@ -2069,8 +2069,11 @@ static int materialui_list_push(void *data, void *userdata,
!string_is_equal(system->info.library_name,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE)))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
}
}

if (system->load_no_content)
Expand Down
7 changes: 5 additions & 2 deletions menu/drivers/ozone/ozone.c
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,11 @@ static int ozone_list_push(void *data, void *userdata,
!string_is_equal(system->info.library_name,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE)))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
}
}

if (system->load_no_content)
Expand Down
7 changes: 5 additions & 2 deletions menu/drivers/stripes.c
Original file line number Diff line number Diff line change
Expand Up @@ -4199,8 +4199,11 @@ static int stripes_list_push(void *data, void *userdata,
!string_is_equal(system->info.library_name,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE)))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
}
}

if (system->load_no_content)
Expand Down
7 changes: 5 additions & 2 deletions menu/drivers/xmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5683,8 +5683,11 @@ static int xmb_list_push(void *data, void *userdata,
!string_is_equal(system->info.library_name,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE)))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
{
entry.enum_idx = MENU_ENUM_LABEL_CONTENT_SETTINGS;
menu_displaylist_setting(&entry);
}
}

if (system->load_no_content)
Expand Down

0 comments on commit becfff5

Please sign in to comment.