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

Function ovr_GetLastErrorInfo

Revive/REV_CAPI.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150OVR_PUBLIC_FUNCTION(void) ovr_GetLastErrorInfo(ovrErrorInfo* errorInfo)
151{
152 REV_TRACE(ovr_GetLastErrorInfo);
153
154 if (!errorInfo)
155 return;
156
157 const char* error = VR_GetVRInitErrorAsEnglishDescription(g_InitError);
158 strcpy_s(errorInfo->ErrorString, sizeof(ovrErrorInfo::ErrorString), error);
159 errorInfo->Result = InitErrorToOvrError(g_InitError);
160}
161
162OVR_PUBLIC_FUNCTION(const char*) ovr_GetVersionString()
163{

Callers

nothing calls this directly

Calls 1

InitErrorToOvrErrorFunction · 0.85

Tested by

no test coverage detected