mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Make the init input check more robust in init_video_input
This commit is contained in:
parent
63cd0eb927
commit
039aec9019
12
driver.c
12
driver.c
@ -1166,7 +1166,7 @@ void init_video_input(void)
|
|||||||
{
|
{
|
||||||
RARCH_LOG("Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.\n");
|
RARCH_LOG("Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.\n");
|
||||||
driver.input = tmp;
|
driver.input = tmp;
|
||||||
if (driver.input != NULL)
|
if (driver.input)
|
||||||
{
|
{
|
||||||
driver.input_data = input_init_func();
|
driver.input_data = input_init_func();
|
||||||
if (driver.input_data == NULL)
|
if (driver.input_data == NULL)
|
||||||
@ -1177,10 +1177,18 @@ void init_video_input(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RARCH_ERR("Cannot find input driver. Exiting ...\n");
|
RARCH_ERR("Cannot find input driver.\n");
|
||||||
|
RARCH_WARN("Going to default to first input driver...\n");
|
||||||
|
|
||||||
|
driver.input = input_drivers[0];
|
||||||
|
|
||||||
|
if (!driver.input)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Still cannot find input driver. Exiting ...\n");
|
||||||
rarch_fail(1, "init_video_input()");
|
rarch_fail(1, "init_video_input()");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
if (driver.overlay)
|
if (driver.overlay)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user