MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetString

Function ovr_GetString

ReviveXR/REV_CAPI.cpp:1387–1399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1385}
1386
1387OVR_PUBLIC_FUNCTION(const char*) ovr_GetString(ovrSession session, const char* propertyName, const char* defaultVal)
1388{
1389 REV_TRACE(ovr_GetString);
1390
1391 if (!session)
1392 return defaultVal;
1393
1394 // Override defaults, we should always return a valid value for these
1395 if (strcmp(propertyName, OVR_KEY_GENDER) == 0)
1396 defaultVal = OVR_DEFAULT_GENDER;
1397
1398 return defaultVal;
1399}
1400
1401OVR_PUBLIC_FUNCTION(ovrBool) ovr_SetString(ovrSession session, const char* propertyName, const char* value)
1402{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected