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.
This commit is contained in:
Brian Ashworth 2019-12-03 17:27:50 -05:00 committed by Simon Ser
parent ad189d27f9
commit fe7ec8024c

View file

@ -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]);
}
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++) {
input_manager_apply_seat_config(config->seat_configs->items[i]);
}