config: apply input type configs on reload

When making the reload validation improvements, I forgot that input type
configs are stored in a separate list. This makes it so input type
configs are correctly applied on reload.
master
Brian Ashworth 5 years ago committed by Simon Ser
parent ad189d27f9
commit fe7ec8024c

@ -529,6 +529,11 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
input_manager_apply_input_config(config->input_configs->items[i]); input_manager_apply_input_config(config->input_configs->items[i]);
} }
for (int i = 0; i < config->input_type_configs->length; i++) {
input_manager_apply_input_config(
config->input_type_configs->items[i]);
}
for (int i = 0; i < config->seat_configs->length; i++) { for (int i = 0; i < config->seat_configs->length; i++) {
input_manager_apply_seat_config(config->seat_configs->items[i]); input_manager_apply_seat_config(config->seat_configs->items[i]);
} }

Loading…
Cancel
Save