mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Cleanups
This commit is contained in:
parent
4ae1e9a53d
commit
a9418050a8
@ -342,16 +342,6 @@ bool menu_driver_alive(void)
|
||||
return menu_alive;
|
||||
}
|
||||
|
||||
static void menu_driver_set_alive(void)
|
||||
{
|
||||
menu_alive = true;
|
||||
}
|
||||
|
||||
static void menu_driver_unset_alive(void)
|
||||
{
|
||||
menu_alive = false;
|
||||
}
|
||||
|
||||
void menu_driver_toggle(bool latch)
|
||||
{
|
||||
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
||||
@ -359,10 +349,7 @@ void menu_driver_toggle(bool latch)
|
||||
if (driver->toggle)
|
||||
driver->toggle(latch);
|
||||
|
||||
if (latch)
|
||||
menu_driver_set_alive();
|
||||
else
|
||||
menu_driver_unset_alive();
|
||||
menu_alive = latch;
|
||||
}
|
||||
|
||||
bool menu_driver_load_image(void *data, menu_image_type_t type)
|
||||
|
Loading…
Reference in New Issue
Block a user