mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +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