input_overlay_new - Call input_overlay_free from outside

This commit is contained in:
twinaphex 2016-05-24 15:25:46 +02:00
parent 8f7e253f1f
commit fd7e2cd394
2 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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);
} }
/** /**