mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Fix termination on mapping parse error
This commit is contained in:
parent
79e2433eb0
commit
71018b4ab5
@ -219,7 +219,12 @@ GLFWAPI int glfwInit(void)
|
||||
_glfw.timer.offset = _glfwPlatformGetTimerValue();
|
||||
|
||||
glfwDefaultWindowHints();
|
||||
glfwUpdateGamepadMappings(_glfwDefaultMappings);
|
||||
|
||||
if (!glfwUpdateGamepadMappings(_glfwDefaultMappings))
|
||||
{
|
||||
terminate();
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
return GLFW_TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user