Start using menu_popup_push_pending

This commit is contained in:
twinaphex 2016-09-04 23:23:54 +02:00
parent 580e27d2e4
commit 575e7b36ab
3 changed files with 10 additions and 6 deletions

View File

@ -27,6 +27,7 @@
#include "../menu_setting.h"
#include "../menu_shader.h"
#include "../menu_navigation.h"
#include "../menu_popup.h"
#include "../menu_content.h"
#include "../../configuration.h"
@ -240,8 +241,7 @@ int generic_action_ok_displaylist_push(const char *path,
break;
case ACTION_OK_DL_HELP:
info_label = label;
menu->help_screen.type = type;
menu->help_screen.push = true;
menu_popup_push_pending(menu, true, type);
dl_type = DISPLAYLIST_HELP;
break;
case ACTION_OK_DL_RPL_ENTRY:

View File

@ -24,6 +24,7 @@
#include "menu_cbs.h"
#include "menu_display.h"
#include "menu_navigation.h"
#include "menu_popup.h"
#include "menu_shader.h"
#include "../config.def.h"
@ -171,8 +172,7 @@ static bool menu_init(menu_handle_t *menu_data)
if (settings->menu_show_start_screen)
{
menu_data->help_screen.push = true;
menu_data->help_screen.type = MENU_HELP_WELCOME;
menu_popup_push_pending(menu_data, true, MENU_HELP_WELCOME);
settings->menu_show_start_screen = false;
command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL);
}
@ -188,8 +188,7 @@ static bool menu_init(menu_handle_t *menu_data)
#endif
)
{
menu_data->help_screen.type = MENU_HELP_EXTRACT;
menu_data->help_screen.push = true;
menu_popup_push_pending(menu_data, true, MENU_HELP_EXTRACT);
#ifdef HAVE_ZLIB
task_push_decompress(settings->path.bundle_assets_src,
settings->path.bundle_assets_dst,

View File

@ -20,10 +20,15 @@
#include <stdint.h>
#include <stdlib.h>
#include <boolean.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
void menu_popup_push_pending(menu_handle_t *menu,
bool push, enum menu_help_type type);
int menu_popup_iterate_help(menu_handle_t *menu,
char *s, size_t len, const char *label);