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

Method GetLibraries

ReviveOverlay/revivemanifestcontroller.cpp:108–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108bool CReviveManifestController::GetLibraries(QStringList &id_array, QStringList &path_array)
109{
110 LONG error = ERROR_SUCCESS;
111
112 // Open the libraries key
113 WCHAR keyPath[MAX_PATH] = { L"Software\\Oculus VR, LLC\\Oculus\\Libraries\\" };
114 HKEY oculusKey;
115 error = RegOpenKeyExW(HKEY_CURRENT_USER, keyPath, 0, KEY_READ, &oculusKey);
116 if (error != ERROR_SUCCESS)
117 {
118 qDebug("Unable to open Libraries key.");
119 return false;
120 }
121 QueryKey(oculusKey, id_array, path_array);
122 RegCloseKey(oculusKey);
123 return true;
124}
125
126bool CReviveManifestController::GetDefaultLibraryPath(wchar_t* path, uint32_t length)
127{

Callers

nothing calls this directly

Calls 1

QueryKeyFunction · 0.85

Tested by

no test coverage detected