mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
Remove input_overlay_init
This commit is contained in:
parent
ae0da06d8f
commit
cd176d0737
@ -1864,7 +1864,8 @@ bool command_event(enum event_command cmd, void *data)
|
||||
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
|
||||
#ifdef HAVE_OVERLAY
|
||||
input_overlay_free();
|
||||
input_overlay_init();
|
||||
if (settings->input.overlay_enable)
|
||||
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
|
||||
#endif
|
||||
break;
|
||||
case CMD_EVENT_OVERLAY_NEXT:
|
||||
|
@ -499,7 +499,7 @@ void input_overlay_free(void)
|
||||
}
|
||||
|
||||
/* task_data = overlay_task_data_t* */
|
||||
static void input_overlay_loaded(void *task_data, void *user_data, const char *err)
|
||||
void input_overlay_loaded(void *task_data, void *user_data, const char *err)
|
||||
{
|
||||
size_t i;
|
||||
overlay_task_data_t *data = (overlay_task_data_t*)task_data;
|
||||
@ -559,14 +559,6 @@ abort_load:
|
||||
free(data);
|
||||
}
|
||||
|
||||
void input_overlay_init(void)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
if (!settings->input.overlay_enable)
|
||||
return;
|
||||
rarch_task_push_overlay_load_default(input_overlay_loaded, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* input_overlay_set_alpha_mod:
|
||||
* @ol : Overlay handle.
|
||||
|
@ -241,6 +241,8 @@ bool input_overlay_key_pressed(int key);
|
||||
|
||||
bool input_overlay_is_alive(input_overlay_t *ol);
|
||||
|
||||
void input_overlay_loaded(void *task_data, void *user_data, const char *err);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user