| 106 | } |
| 107 | |
| 108 | bool 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 | |
| 126 | bool CReviveManifestController::GetDefaultLibraryPath(wchar_t* path, uint32_t length) |
| 127 | { |
nothing calls this directly
no test coverage detected