(Menu) Move menu_push_info_screen to menu_entries.c

This commit is contained in:
twinaphex 2014-09-01 02:17:59 +02:00
parent c0b100002c
commit de0ba69948
5 changed files with 11 additions and 8 deletions

View File

@ -708,11 +708,6 @@ void menu_build_scroll_indices(file_list_t *buf)
buf->size - 1;
}
void menu_push_info_screen(void)
{
file_list_push(driver.menu->menu_stack, "", "help", 0, 0);
}
unsigned menu_common_type_is(unsigned type)
{
if (

View File

@ -199,7 +199,6 @@ uint64_t menu_input(void);
void menu_flush_stack_type(unsigned final_type);
void menu_update_system_info(menu_handle_t *menu, bool *load_no_content);
void menu_build_scroll_indices(file_list_t *buf);
void menu_push_info_screen(void);
unsigned menu_common_type_is(unsigned type);
#ifdef __cplusplus

View File

@ -797,3 +797,8 @@ int menu_parse_and_resolve(void)
return 0;
}
void menu_entries_push_info(void)
{
file_list_push(driver.menu->menu_stack, "", "help", 0, 0);
}

View File

@ -21,6 +21,7 @@
int menu_entries_push(menu_handle_t *menu, const char *path,
const char *label, unsigned menu_type);
void menu_entries_push_info(void);
int menu_parse_and_resolve(void);
#endif

View File

@ -33,6 +33,10 @@
#endif
#ifdef HAVE_MENU
#include "frontend/menu/menu_entries.h"
#endif
static void get_input_config_prefix(char *buf, size_t sizeof_buf,
const rarch_setting_t *setting)
{
@ -1474,8 +1478,7 @@ static void general_write_handler(const void *data)
if (*setting->value.boolean)
{
#ifdef HAVE_MENU
extern void menu_push_info_screen(void);
menu_push_info_screen();
menu_entries_push_info();
#endif
*setting->value.boolean = false;
}