This commit is contained in:
twinaphex 2016-09-04 23:27:08 +02:00
parent 575e7b36ab
commit 7c6de82096
4 changed files with 20 additions and 3 deletions

View File

@ -28,6 +28,7 @@
#include "menu_content.h"
#include "menu_driver.h"
#include "menu_navigation.h"
#include "menu_popup.h"
#include "menu_cbs.h"
#ifdef HAVE_LIBRETRODB
@ -4177,7 +4178,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
case DISPLAYLIST_HELP:
menu_entries_append_enum(info->list, info->path,
info->label, MSG_UNKNOWN, info->type, info->directory_ptr, 0);
menu->help_screen.push = false;
menu_popup_unset_pending_push(menu);
break;
case DISPLAYLIST_SETTING_ENUM:
{

View File

@ -181,7 +181,7 @@ static bool menu_init(menu_handle_t *menu_data)
&& !string_is_empty(settings->path.bundle_assets_src)
&& !string_is_empty(settings->path.bundle_assets_dst)
#ifdef IOS
&& menu_data->help_screen.push
&& menu_popup_is_push_pending(menu_data)
#else
&& (settings->bundle_assets_extract_version_current
!= settings->bundle_assets_extract_last_version)

View File

@ -220,6 +220,18 @@ int menu_popup_iterate_help(menu_handle_t *menu,
return 0;
}
bool menu_popup_is_push_pending(menu_handle_t *menu)
{
return menu->help_screen.push;
}
void menu_popup_unset_pending_push(menu_handle_t *menu)
{
if (!menu)
return;
menu->help_screen.push = false;
}
void menu_popup_push_pending(menu_handle_t *menu,
bool push, enum menu_help_type type)
{
@ -233,7 +245,7 @@ void menu_popup_push(menu_handle_t *menu)
{
menu_displaylist_info_t info = {0};
if (!menu->help_screen.push)
if (!menu_popup_is_push_pending(menu))
return;
info.list = menu_entries_get_menu_stack_ptr(0);

View File

@ -32,6 +32,10 @@ void menu_popup_push_pending(menu_handle_t *menu,
int menu_popup_iterate_help(menu_handle_t *menu,
char *s, size_t len, const char *label);
void menu_popup_unset_pending_push(menu_handle_t *menu);
bool menu_popup_is_push_pending(menu_handle_t *menu);
void menu_popup_push(menu_handle_t *menu);
RETRO_END_DECLS