default_gamepad is an int: load config as such

This commit is contained in:
Denis 2023-12-14 23:38:51 +01:00
parent bcabb2732b
commit 8b57c19d0a
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -54,7 +54,7 @@ void load_out_config(dev_out_settings_t *const out_conf, const char* const filep
} }
int default_gamepad; int default_gamepad;
if (config_lookup_bool(&cfg, "default_gamepad", &default_gamepad) != CONFIG_FALSE) { if (config_lookup_int(&cfg, "default_gamepad", &default_gamepad) != CONFIG_FALSE) {
out_conf->default_gamepad = default_gamepad % 3; out_conf->default_gamepad = default_gamepad % 3;
} else { } else {
fprintf(stderr, "default_gamepad (int) configuration not found. Default value will be used.\n"); fprintf(stderr, "default_gamepad (int) configuration not found. Default value will be used.\n");