From 6203c3162e7489a937d99fe8f3f2c9006fcc9bda Mon Sep 17 00:00:00 2001 From: Mike Robinson Date: Fri, 3 Oct 2014 03:05:35 +0100 Subject: [PATCH] Fallback to first working joypad driver if init failed Fallback to the old behavior on init failure so there's no regression if the user did not select a working joypad driver. --- input/input_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input_common.c b/input/input_common.c index 9b6e665b47..9962a22839 100644 --- a/input/input_common.c +++ b/input/input_common.c @@ -105,7 +105,7 @@ const rarch_joypad_driver_t *input_joypad_init_driver(const char *ident) } } - return NULL; + return input_joypad_init_first(); } const rarch_joypad_driver_t *input_joypad_init_first(void)