Skip to content

Commit

Permalink
openvr: changed missing runtime does not cause Init() call to fail.
Browse files Browse the repository at this point in the history
otherwise engine can not be started if runtime is missing which is
a valid scenario for VR modules.
  • Loading branch information
LordOfDragons committed May 13, 2022
1 parent 1b5641b commit 84721a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/vr/openvr/src/deVROpenVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ bool deVROpenVR::Init(){
}else{
LogError( "Failed retrieving runtime path" );
pRuntimeInstalled = false;
return false;
return true;
}

LogInfoFormat( "HMD Present: %s", vr::VR_IsHmdPresent() ? "Yes" : "No" );
Expand All @@ -228,6 +228,9 @@ void deVROpenVR::StartRuntime(){
if( pVRSystem ){
return;
}
if( ! pRuntimeInstalled ){
DETHROW_INFO( deeInvalidAction, "runtime not found" );
}

LogInfo( "Start Runtime" );

Expand Down

0 comments on commit 84721a7

Please sign in to comment.