From 8b57c19d0ab88244699714d9dc75064ac5afc63e Mon Sep 17 00:00:00 2001 From: Denis Date: Thu, 14 Dec 2023 23:38:51 +0100 Subject: [PATCH] default_gamepad is an int: load config as such --- settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.c b/settings.c index 05f2daf..bc301cf 100644 --- a/settings.c +++ b/settings.c @@ -54,7 +54,7 @@ void load_out_config(dev_out_settings_t *const out_conf, const char* const filep } 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; } else { fprintf(stderr, "default_gamepad (int) configuration not found. Default value will be used.\n");