Save autodetect_enable

This commit is contained in:
twinaphex 2013-12-12 22:14:10 +01:00
parent eacc193d74
commit ee18da7632
2 changed files with 2 additions and 1 deletions

View File

@ -1831,7 +1831,7 @@ void menu_set_settings_label(char *type_str, size_t type_str_size, unsigned *w,
break;
}
case RGUI_SETTINGS_DEVICE_AUTODETECT_ENABLE:
strlcpy(type_str, "Autodetect Enable", type_str_size);
strlcpy(type_str, g_settings.input.autodetect_enable ? "ON" : "OFF", sizeof(type_str));
break;
case RGUI_SETTINGS_BIND_UP:
case RGUI_SETTINGS_BIND_DOWN:

View File

@ -1148,6 +1148,7 @@ bool config_save_file(const char *path)
config_set_string(conf, "game_history_path", g_settings.game_history_path);
config_set_int(conf, "game_history_size", g_settings.game_history_size);
config_set_string(conf, "joypad_autoconfig_dir", g_settings.input.autoconfig_dir);
config_set_bool(conf, "input_autodetect_enable", g_settings.input.autodetect_enable);
#ifdef HAVE_OVERLAY
config_set_string(conf, "overlay_directory", *g_extern.overlay_dir ? g_extern.overlay_dir : "default");