mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
input_overlay_new - Call input_overlay_free from outside
This commit is contained in:
parent
8f7e253f1f
commit
fd7e2cd394
@ -1863,6 +1863,7 @@ bool command_event(enum event_command cmd, void *data)
|
||||
case CMD_EVENT_OVERLAY_INIT:
|
||||
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
|
||||
#ifdef HAVE_OVERLAY
|
||||
input_overlay_free();
|
||||
input_overlay_init();
|
||||
#endif
|
||||
break;
|
||||
|
@ -575,10 +575,10 @@ abort_load:
|
||||
|
||||
void input_overlay_init(void)
|
||||
{
|
||||
input_overlay_free();
|
||||
|
||||
if (config_get_ptr()->input.overlay_enable)
|
||||
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
|
||||
settings_t *settings = config_get_ptr();
|
||||
if (!settings->input.overlay_enable)
|
||||
return;
|
||||
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user