mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Address TODO/FIXME
This commit is contained in:
parent
add0cedc48
commit
7d908da30f
@ -27,7 +27,6 @@
|
|||||||
#include <lists/string_list.h>
|
#include <lists/string_list.h>
|
||||||
#include <streams/file_stream.h>
|
#include <streams/file_stream.h>
|
||||||
#include <string/stdstring.h>
|
#include <string/stdstring.h>
|
||||||
#include <features/features_cpu.h>
|
|
||||||
#include <encodings/utf.h>
|
#include <encodings/utf.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
@ -115,7 +114,8 @@ 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.
|
* Returns: 0 on success, -1 if we need to quit out of the loop.
|
||||||
**/
|
**/
|
||||||
static int generic_menu_iterate(void *data,
|
static int generic_menu_iterate(void *data,
|
||||||
void *userdata, enum menu_action action)
|
void *userdata, enum menu_action action,
|
||||||
|
retro_time_t current_time)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ACCESSIBILITY
|
#ifdef HAVE_ACCESSIBILITY
|
||||||
static enum action_iterate_type
|
static enum action_iterate_type
|
||||||
@ -126,8 +126,6 @@ static int generic_menu_iterate(void *data,
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
const char *label = NULL;
|
const char *label = NULL;
|
||||||
menu_handle_t *menu = (menu_handle_t*)data;
|
menu_handle_t *menu = (menu_handle_t*)data;
|
||||||
/* TODO/FIXME - menus should take current time from retroarch.c */
|
|
||||||
retro_time_t current_time = cpu_features_get_time_usec();
|
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return 0;
|
return 0;
|
||||||
@ -2302,7 +2300,8 @@ bool menu_driver_iterate(menu_ctx_iterate_t *iterate,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (generic_menu_iterate(menu_driver_data,
|
if (generic_menu_iterate(menu_driver_data,
|
||||||
menu_userdata, iterate->action) != -1)
|
menu_userdata, iterate->action,
|
||||||
|
current_time) != -1)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user