From 241fe6137390b2da2aa44830a516dedbf032f23f Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Thu, 9 Nov 2023 20:45:15 +0100 Subject: [PATCH] Disabled Oculus plugin in additional place --- plugins/oculus/src/OculusHelpers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/oculus/src/OculusHelpers.cpp b/plugins/oculus/src/OculusHelpers.cpp index 2693b9ee7e..bcd2596061 100644 --- a/plugins/oculus/src/OculusHelpers.cpp +++ b/plugins/oculus/src/OculusHelpers.cpp @@ -7,6 +7,7 @@ // #include "OculusHelpers.h" +#include "plugins/PluginManager.h" #include @@ -41,6 +42,10 @@ bool ovr::available() { return; } + if (!PluginManager::getInstance()->getEnableOculusPluginSetting()) { + return; + } + ovrDetectResult detect = ovr_Detect(0); if (!detect.IsOculusServiceRunning || !detect.IsOculusHMDConnected) { return;