mirror of
https://github.com/glfw/glfw.git
synced 2026-02-17 21:12:34 +01:00
Fix termination on mapping parse error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user