mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
Disabled Oculus plugin in additional place
This commit is contained in:
parent
85a9987af5
commit
241fe61373
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "OculusHelpers.h"
|
#include "OculusHelpers.h"
|
||||||
|
#include "plugins/PluginManager.h"
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
|
||||||
|
@ -41,6 +42,10 @@ bool ovr::available() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!PluginManager::getInstance()->getEnableOculusPluginSetting()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ovrDetectResult detect = ovr_Detect(0);
|
ovrDetectResult detect = ovr_Detect(0);
|
||||||
if (!detect.IsOculusServiceRunning || !detect.IsOculusHMDConnected) {
|
if (!detect.IsOculusServiceRunning || !detect.IsOculusHMDConnected) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue