From a990d7e319df3c7595b2de0e13e0b04a8b22fd51 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 17 Jul 2014 03:03:05 +0200 Subject: [PATCH] Make find_video_driver more robust in case of failure --- driver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/driver.c b/driver.c index 4ce9afdfb3..57dd162f9f 100644 --- a/driver.c +++ b/driver.c @@ -291,8 +291,12 @@ static void find_video_driver(void) RARCH_LOG_OUTPUT("Available video drivers are:\n"); for (d = 0; video_drivers[d]; d++) RARCH_LOG_OUTPUT("\t%s\n", video_drivers[d]->ident); + RARCH_WARN("Going to default to first video driver...\n"); - rarch_fail(1, "find_video_driver()"); + driver.video = video_drivers[0]; + + if (!driver.video) + rarch_fail(1, "find_video_driver()"); } }