From 76ee895f24aaeb09fd5caac4fedb98ed298499ee Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Fri, 15 Aug 2014 18:38:02 +0200 Subject: [PATCH] Add fallback for find_location_driver --- driver.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/driver.c b/driver.c index 8a6adae10e..64766c25b0 100644 --- a/driver.c +++ b/driver.c @@ -435,8 +435,13 @@ static void find_location_driver(void) RARCH_LOG_OUTPUT("Available location drivers are:\n"); for (d = 0; location_drivers[d]; d++) RARCH_LOG_OUTPUT("\t%s\n", location_drivers[d]->ident); + + RARCH_WARN("Going to default to first location driver...\n"); + + driver.location = location_drivers[0]; - rarch_fail(1, "find_location_driver()"); + if (!driver.location) + rarch_fail(1, "find_location_driver()"); } }