Disabled Oculus plugin in additional place

This commit is contained in:
ksuprynowicz 2023-11-09 20:45:15 +01:00
parent 85a9987af5
commit 241fe61373

View file

@ -7,6 +7,7 @@
//
#include "OculusHelpers.h"
#include "plugins/PluginManager.h"
#include <atomic>
@ -41,6 +42,10 @@ bool ovr::available() {
return;
}
if (!PluginManager::getInstance()->getEnableOculusPluginSetting()) {
return;
}
ovrDetectResult detect = ovr_Detect(0);
if (!detect.IsOculusServiceRunning || !detect.IsOculusHMDConnected) {
return;