mirror of
https://github.com/libretro/RetroArch
synced 2025-01-14 09:43:27 +00:00
Cleanup
This commit is contained in:
parent
76399013a1
commit
d955af64a0
@ -65,20 +65,19 @@ static enum action_iterate_type action_iterate_type(const char *label)
|
||||
*
|
||||
* Returns: 0 on success, -1 if we need to quit out of the loop.
|
||||
**/
|
||||
int generic_menu_iterate(void *data, void *userdata, enum menu_action action)
|
||||
int generic_menu_iterate(menu_handle_t *menu, void *userdata, enum menu_action action)
|
||||
{
|
||||
enum action_iterate_type iterate_type;
|
||||
unsigned file_type = 0;
|
||||
int ret = 0;
|
||||
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
|
||||
const char *label = NULL;
|
||||
menu_handle_t *menu = (menu_handle_t*)data;
|
||||
|
||||
menu_entries_get_last_stack(NULL, &label, &file_type, &enum_idx, NULL);
|
||||
|
||||
if (!menu)
|
||||
return 0;
|
||||
|
||||
menu_entries_get_last_stack(NULL, &label, &file_type, &enum_idx, NULL);
|
||||
|
||||
menu->menu_state_msg[0] = '\0';
|
||||
|
||||
iterate_type = action_iterate_type(label);
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include <boolean.h>
|
||||
|
||||
#include "../menu_driver.h"
|
||||
#include "../menu_input.h"
|
||||
|
||||
enum action_iterate_type
|
||||
@ -30,7 +31,7 @@ enum action_iterate_type
|
||||
ITERATE_TYPE_BIND
|
||||
};
|
||||
|
||||
int generic_menu_iterate(void *data, void *userdata, enum menu_action action);
|
||||
int generic_menu_iterate(menu_handle_t *menu, void *userdata, enum menu_action action);
|
||||
|
||||
bool generic_menu_init_list(void *data);
|
||||
|
||||
|
@ -465,7 +465,7 @@ typedef struct menu_ctx_driver
|
||||
void (*set_texture)(void);
|
||||
/* Render a messagebox to the screen. */
|
||||
void (*render_messagebox)(void *data, const char *msg);
|
||||
int (*iterate)(void *data, void *userdata, enum menu_action action);
|
||||
int (*iterate)(menu_handle_t *menu, void *userdata, enum menu_action action);
|
||||
void (*render)(void *data, bool is_idle);
|
||||
void (*frame)(void *data, video_frame_info_t *video_info);
|
||||
/* Initializes the menu driver. (setup) */
|
||||
|
Loading…
Reference in New Issue
Block a user