Update OpenVR from 1.8.19 -> 1.9.16 and remove Sync() calls
Release log: https://github.com/ValveSoftware/openvr/releases/tag/v1.9.16 ``` Removed sync function. Saving of settings is controlled automatically by the system now. All existing calls to Sync can be deleted. Calls to sync using old APIs do nothing. ```
This commit is contained in:
@@ -178,7 +178,6 @@ void SteamVRTabController::setPerformanceGraph( const bool value,
|
||||
vr::VRSettings()->SetBool( vr::k_pch_Perf_Section,
|
||||
vr::k_pch_Perf_PerfGraphInHMD_Bool,
|
||||
m_performanceGraphToggle );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit performanceGraphChanged( m_performanceGraphToggle );
|
||||
@@ -201,7 +200,6 @@ void SteamVRTabController::setMultipleDriver( const bool value,
|
||||
vr::k_pch_SteamVR_Section,
|
||||
vr::k_pch_SteamVR_ActivateMultipleDrivers_Bool,
|
||||
m_multipleDriverToggle );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit multipleDriverChanged( m_multipleDriverToggle );
|
||||
@@ -223,7 +221,6 @@ void SteamVRTabController::setNoFadeToGrid( const bool value,
|
||||
vr::VRSettings()->SetBool( vr::k_pch_SteamVR_Section,
|
||||
vr::k_pch_SteamVR_DoNotFadeToGrid,
|
||||
m_noFadeToGridToggle );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit noFadeToGridChanged( m_noFadeToGridToggle );
|
||||
@@ -246,7 +243,6 @@ void SteamVRTabController::setSystemButton( const bool value,
|
||||
vr::k_pch_SteamVR_Section,
|
||||
vr::k_pch_SteamVR_SendSystemButtonToAllApps_Bool,
|
||||
m_systemButtonToggle );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit systemButtonChanged( m_systemButtonToggle );
|
||||
@@ -267,7 +263,6 @@ void SteamVRTabController::setDND( const bool value, const bool notify )
|
||||
vr::VRSettings()->SetBool( vr::k_pch_Notifications_Section,
|
||||
vr::k_pch_Notifications_DoNotDisturb_Bool,
|
||||
m_dnd );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit dNDChanged( m_dnd );
|
||||
@@ -292,7 +287,6 @@ void SteamVRTabController::setCameraActive( const bool value,
|
||||
vr::VRSettings()->SetBool( vr::k_pch_Camera_Section,
|
||||
vr::k_pch_Camera_EnableCamera_Bool,
|
||||
m_cameraActive );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit cameraActiveChanged( m_cameraActive );
|
||||
@@ -315,7 +309,6 @@ void SteamVRTabController::setCameraBounds( const bool value,
|
||||
vr::k_pch_Camera_Section,
|
||||
vr::k_pch_Camera_EnableCameraForCollisionBounds_Bool,
|
||||
m_cameraBounds );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit cameraBoundsChanged( m_cameraBounds );
|
||||
@@ -337,7 +330,6 @@ void SteamVRTabController::setCameraRoom( const bool value, const bool notify )
|
||||
vr::k_pch_Camera_Section,
|
||||
vr::k_pch_Camera_EnableCameraForRoomView_Bool,
|
||||
m_cameraRoom );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit cameraRoomChanged( m_cameraRoom );
|
||||
@@ -380,7 +372,6 @@ void SteamVRTabController::setCameraDashboard( const bool value,
|
||||
vr::k_pch_Camera_Section,
|
||||
vr::k_pch_Camera_EnableCameraInDashboard_Bool,
|
||||
m_cameraDashboard );
|
||||
vr::VRSettings()->Sync();
|
||||
if ( notify )
|
||||
{
|
||||
emit cameraDashboardChanged( m_cameraDashboard );
|
||||
|
||||
Reference in New Issue
Block a user