indentation fix
This commit is contained in:
parent
50e4dfb57c
commit
d2472eb8cb
|
@ -812,8 +812,8 @@ static void input_autoconfigure_joypad_conf(config_file_t *conf, struct retro_ke
|
||||||
|
|
||||||
static bool input_try_autoconfigure_joypad_from_conf(config_file_t *conf, unsigned index, const char *name, const char *driver, bool block_osd_spam)
|
static bool input_try_autoconfigure_joypad_from_conf(config_file_t *conf, unsigned index, const char *name, const char *driver, bool block_osd_spam)
|
||||||
{
|
{
|
||||||
if (!conf)
|
if (!conf)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
char ident[1024];
|
char ident[1024];
|
||||||
char input_driver[1024];
|
char input_driver[1024];
|
||||||
|
@ -875,12 +875,12 @@ void input_config_autoconfigure_joypad(unsigned index, const char *name, const c
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now try files
|
// Now try files
|
||||||
struct string_list *list = dir_list_new(g_settings.input.autoconfig_dir, "cfg", false);
|
|
||||||
if (!list)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!internal_only)
|
if (!internal_only)
|
||||||
{
|
{
|
||||||
|
struct string_list *list = dir_list_new(g_settings.input.autoconfig_dir, "cfg", false);
|
||||||
|
if (!list)
|
||||||
|
return;
|
||||||
|
|
||||||
for (size_t i = 0; i < list->size; i++)
|
for (size_t i = 0; i < list->size; i++)
|
||||||
{
|
{
|
||||||
config_file_t *conf = config_file_new(list->elems[i].data);
|
config_file_t *conf = config_file_new(list->elems[i].data);
|
||||||
|
@ -891,9 +891,9 @@ void input_config_autoconfigure_joypad(unsigned index, const char *name, const c
|
||||||
if (success)
|
if (success)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string_list_free(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
string_list_free(list);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void input_config_autoconfigure_joypad(unsigned index, const char *name, const char *driver)
|
void input_config_autoconfigure_joypad(unsigned index, const char *name, const char *driver)
|
||||||
|
|
Loading…
Reference in New Issue