Move OpenVR init function out of Overlaycontroller

This prevents the issue of OpenVR not being initialized in constructors
of other objects, and there's really no reason not to do it.
This commit is contained in:
Vasily
2019-03-10 23:12:26 +01:00
committed by username223
parent 9f24099a93
commit 37e0366e9d
6 changed files with 52 additions and 47 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ QSettings* OverlayController::_appSettings = nullptr;
OverlayController::OverlayController( bool desktopMode,
bool noSound,
QQmlEngine& qmlEngine )
: QObject(), m_desktopMode( desktopMode ), m_noSound( noSound ),
m_openVrInit(), m_actions()
: QObject(), m_desktopMode( desktopMode ), m_noSound( noSound ), m_actions()
{
// Despite arguably being OpenVR init code, the call is still here because
// the TabController uses this directly. Offering it through OpenVR_Init