jacres
4/3/2018 - 8:02 PM

gistfile1.txt

		inline lc::vr::InitResult FromOpenVRInitError( ::vr::EVRInitError _error )
		{
			switch ( _error )
			{
			case ::vr::VRInitError_None:						return InitResult::Success;

			case ::vr::VRInitError_Init_HmdNotFound:			return InitResult::Hmd_Not_Found;

			case ::vr::VRInitError_Driver_NotLoaded:			return InitResult::Library_Load_Failure;		// Couldn't load LibOVRRT
			case ::vr::VRInitError_Driver_RuntimeOutOfDate:		return InitResult::Library_Version_Incompat;	// LibOVRRT version incompatibility


			default:
				assert( false );
				return InitResult::Unknown_Error;
			}
		}