Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
r57zone committed Nov 3, 2018
1 parent 4990443 commit 6824551
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 10 additions & 10 deletions OpenVR/samples/driver_sample/driver_sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ double DegToRad(double f) {
// Purpose:
//-----------------------------------------------------------------------------

class CWatchdogDriver_Sample : public IVRWatchdogProvider
/*class CWatchdogDriver_Sample : public IVRWatchdogProvider
{
public:
CWatchdogDriver_Sample()
Expand Down Expand Up @@ -156,10 +156,8 @@ EVRInitError CWatchdogDriver_Sample::Init( vr::IVRDriverContext *pDriverContext
void CWatchdogDriver_Sample::Cleanup()
{
if (hDll != NULL) FreeLibrary(hDll);
hDll = nullptr;
//CleanupDriverLog();
}
}*/


//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -850,10 +848,12 @@ void CServerDriver_Sample::Cleanup()
//CleanupDriverLog();
delete m_pNullHmdLatest;
m_pNullHmdLatest = NULL;
delete m_pController;
m_pController = NULL;
delete m_pController2;
m_pController2 = NULL;
if (ctrlsConnected) {
delete m_pController;
m_pController = NULL;
delete m_pController2;
m_pController2 = NULL;
}
}


Expand Down Expand Up @@ -899,10 +899,10 @@ HMD_DLL_EXPORT void *HmdDriverFactory( const char *pInterfaceName, int *pReturnC
{
return &g_serverDriverNull;
}
if( 0 == strcmp( IVRWatchdogProvider_Version, pInterfaceName ) )
/*if( 0 == strcmp( IVRWatchdogProvider_Version, pInterfaceName ) )
{
return &g_watchdogDriverNull;
}
}*/

if( pReturnCode )
*pReturnCode = VRInitError_Init_InterfaceNotFound;
Expand Down
2 changes: 2 additions & 0 deletions TrueOpenVR SteamVR/OpenVR/steamvr.vrsettings
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"windowHeight" : <WINDOWHEIGHT>,
"windowX" : <WINDOWX>,
"windowY" : <WINDOWY>,
"displayFrequency" : 60,
"ipd" : <IPD>,
"DistortionK1" : <DISTORTIONK1>,
"DistortionK2" : <DISTORTIONK2>,
Expand All @@ -24,6 +25,7 @@
},
"steamvr" : {
"activateMultipleDrivers" : true,
"allowAsyncReprojection" : false,
"directMode" : false,
"enableHomeApp" : false,
"forcedDriver" : "null",
Expand Down

0 comments on commit 6824551

Please sign in to comment.