mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 15:40:28 +00:00
(CTR) Cut down on runloop_get_flags calls
This commit is contained in:
parent
c6c7c343df
commit
4dd3b022f1
@ -1022,14 +1022,13 @@ static void save_state_to_file(void *data)
|
|||||||
command_event(CMD_EVENT_RAM_STATE_TO_FILE, state_path);
|
command_event(CMD_EVENT_RAM_STATE_TO_FILE, state_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bottom_menu_control(void* data, bool lcd_bottom)
|
static void ctr_bottom_menu_control(void* data, bool lcd_bottom, uint32_t flags)
|
||||||
{
|
{
|
||||||
touchPosition state_tmp_touch;
|
touchPosition state_tmp_touch;
|
||||||
uint32_t state_tmp = 0;
|
uint32_t state_tmp = 0;
|
||||||
ctr_video_t *ctr = (ctr_video_t*)data;
|
ctr_video_t *ctr = (ctr_video_t*)data;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
int config_slot = settings->ints.state_slot;
|
int config_slot = settings->ints.state_slot;
|
||||||
uint32_t flags = runloop_get_flags();
|
|
||||||
|
|
||||||
if (!ctr->init_bottom_menu)
|
if (!ctr->init_bottom_menu)
|
||||||
{
|
{
|
||||||
@ -1913,7 +1912,7 @@ static bool ctr_frame(void* data, const void* frame,
|
|||||||
else
|
else
|
||||||
ctr_bottom_screen_enabled = lcd_bottom;
|
ctr_bottom_screen_enabled = lcd_bottom;
|
||||||
}
|
}
|
||||||
bottom_menu_control(data, lcd_bottom);
|
ctr_bottom_menu_control(data, lcd_bottom, flags);
|
||||||
|
|
||||||
if (ctr->p3d_event_pending)
|
if (ctr->p3d_event_pending)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user