The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/steamvr_lh: Check if SteamVR directory exists

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2536>

authored by

naparise and committed by
Marge Bot
c02a6406 98efbb62

+4 -1
+4 -1
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
··· 82 82 std::shared_ptr<vdf::object> apps = child->childs["apps"]; 83 83 for (auto &[appid, _] : apps->attribs) { 84 84 if (appid == STEAMVR_APPID) { 85 - return child->attribs["path"] + "/steamapps/common/SteamVR"; 85 + std::string path = child->attribs["path"] + "/steamapps/common/SteamVR"; 86 + if (std::filesystem::exists(path)) { 87 + return path; 88 + } 86 89 } 87 90 } 88 91 }