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:
|
case CMD_EVENT_OVERLAY_INIT:
|
||||||
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
|
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
|
input_overlay_free();
|
||||||
input_overlay_init();
|
input_overlay_init();
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -575,10 +575,10 @@ abort_load:
|
||||||
|
|
||||||
void input_overlay_init(void)
|
void input_overlay_init(void)
|
||||||
{
|
{
|
||||||
input_overlay_free();
|
settings_t *settings = config_get_ptr();
|
||||||
|
if (!settings->input.overlay_enable)
|
||||||
if (config_get_ptr()->input.overlay_enable)
|
return;
|
||||||
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
|
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue