Skip to content

Commit

Permalink
ReviveOverlay: Ensure the runtime path ends with a slash.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Jun 3, 2017
1 parent 94d2e6c commit 7af5e92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ReviveOverlay/openvroverlaycontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ bool COpenVROverlayController::ConnectToVRRuntime()
m_strVRDriver = GetTrackedDeviceString(pVRSystem, vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_TrackingSystemName_String);
m_strVRDisplay = GetTrackedDeviceString(pVRSystem, vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_SerialNumber_String);
m_strRuntimeURL = QUrl::fromLocalFile(vr::VR_RuntimePath()).url();
if (!m_strRuntimeURL.endsWith('/'))
m_strRuntimeURL.append('/');
emit RuntimeChanged();

return true;
Expand Down

0 comments on commit 7af5e92

Please sign in to comment.