mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Fix for when a device is not able to be autoconfigured - properly finish
the task then
This commit is contained in:
parent
02c0e8013b
commit
4c41c7a3d0
1 changed files with 5 additions and 4 deletions
|
@ -304,11 +304,11 @@ static void input_autoconfigure_connect_handler(retro_task_t *task)
|
|||
{
|
||||
autoconfig_params_t *params = task ? (autoconfig_params_t*)task->state : NULL;
|
||||
|
||||
if (!params || !input_autoconfigure_joypad_init(params))
|
||||
return;
|
||||
|
||||
if (string_is_empty(params->name))
|
||||
if (!params || !input_autoconfigure_joypad_init(params) || string_is_empty(params->name))
|
||||
{
|
||||
task->finished = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !input_autoconfigure_joypad_from_conf_dir(params, task)
|
||||
&& !input_autoconfigure_joypad_from_conf_internal(params, task))
|
||||
|
@ -325,6 +325,7 @@ static void input_autoconfigure_connect_handler(retro_task_t *task)
|
|||
msg_hash_to_str(MSG_DEVICE_NOT_CONFIGURED));
|
||||
task->title = strdup(msg);
|
||||
|
||||
task->finished = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue