fix the back as menu toggle option, autoconf was returning false even when a controller was succesfully configured...

This commit is contained in:
Radius 2015-08-13 03:14:53 +01:00
parent cc3b1fd49f
commit 638db98e7d
2 changed files with 2 additions and 2 deletions

View File

@ -729,7 +729,7 @@ static void handle_hotplug(android_input_t *android,
if (settings->input.autodetect_enable)
{
unsigned autoconfigured = false;
bool autoconfigured = false;
autoconfig_params_t params = {{0}};
RARCH_LOG("Port %d: %s VID/PID: %d/%d\n", *port, name_buf, params.vid, params.pid);
@ -743,7 +743,6 @@ static void handle_hotplug(android_input_t *android,
strlcpy(params.driver, android_joypad.ident, sizeof(params.driver));
autoconfigured = input_config_autoconfigure_joypad(&params);
if (autoconfigured)
{
if (settings->input.autoconf_binds[*port][RARCH_MENU_TOGGLE].joykey != 0)

View File

@ -227,6 +227,7 @@ static bool input_autoconfigure_joypad_from_conf_dir(
conf = config_file_new(list->elems[index].data);
input_autoconfigure_joypad_add(conf, params);
config_file_free(conf);
ret = 1;
}
else
{