mirror of
https://github.com/glfw/glfw.git
synced 2026-09-20 16:30:45 +00:00
Select mapping platform name at runtime
This is done in preparation for runtime platform selection.
This commit is contained in:
+3
-2
@@ -234,8 +234,9 @@ static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string)
|
||||
}
|
||||
else
|
||||
{
|
||||
length = strlen(_GLFW_PLATFORM_MAPPING_NAME);
|
||||
if (strncmp(c, _GLFW_PLATFORM_MAPPING_NAME, length) != 0)
|
||||
const char* name = _glfwPlatformGetMappingName();
|
||||
length = strlen(name);
|
||||
if (strncmp(c, name, length) != 0)
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user