OVR_EXPORT const char* ovrHmd_GetString(ovrHmd hmd, const char* propertyName, const char* defaultVal) { HMDState* hmds = (HMDState*)hmd; if (hmds) { return hmds->getString(propertyName, defaultVal); } return defaultVal; }
OVR_EXPORT const char* ovrHmd_GetString(ovrHmd hmddesc, const char* propertyName, const char* defaultVal) { OVR_ASSERT(hmddesc && propertyName); HMDState* hmds = (HMDState*)hmddesc->Handle; if (hmds) { return hmds->getString(propertyName, defaultVal); } return defaultVal; }
OVR_EXPORT const char* ovrHmd_GetString(ovrHmd hmddesc, const char* propertyName, const char* defaultVal) { OVR_ASSERT(propertyName); if (hmddesc) { HMDState* hmds = (HMDState*)hmddesc->Handle; if (hmds) { return hmds->getString(propertyName, defaultVal); } } return NetClient::GetInstance()->GetStringValue(InvalidVirtualHmdId, propertyName, defaultVal); }