From e657ecc8dda28c02d72c68d436d2880fdb01eb55 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 14 Oct 2023 00:02:31 +0200 Subject: [PATCH] And another config.c clean-up. --- src/config.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/config.c b/src/config.c index d6430053c..cc8e73ca4 100644 --- a/src/config.c +++ b/src/config.c @@ -412,19 +412,7 @@ load_input_devices(void) p = ini_section_get_string(cat, "joystick_type", NULL); if (p != NULL) { - if (!strcmp(p, "standard_2button")) - /* Migrate renamed types */ - joystick_type = joystick_get_from_internal_name("2axis_2button"); - else if (!strcmp(p, "standard_4button")) - joystick_type = joystick_get_from_internal_name("2axis_4button"); - else if (!strcmp(p, "standard_6button")) - joystick_type = joystick_get_from_internal_name("2axis_6button"); - else if (!strcmp(p, "standard_8button")) - joystick_type = joystick_get_from_internal_name("2axis_8button"); - else if (!strcmp(p, "ch_flighstick_pro")) /* fix typo */ - joystick_type = joystick_get_from_internal_name("ch_flightstick_pro"); - else - joystick_type = joystick_get_from_internal_name(p); + joystick_type = joystick_get_from_internal_name(p); if (!joystick_type) { /* Try to read an integer for backwards compatibility with old configs */