Convert openvr_init from class to function
Since the OpenVR initialization code is no longer inside the overlaycontroller there is no need for it to be available during object construction. Therefore it doesn't make sense to have it be an object. The shutdown call was completely removed because shutdowns are handled by an OpenVR event that calls the relevant shutdown code. The destructor for the old object was never called, removing it adds clarity to the actual operation of the code and also removes unnecessary code.
This commit is contained in:
+1
-1
@@ -295,7 +295,7 @@ void reinstallApplicationManifest( const QString manifestPath )
|
||||
[[noreturn]] void handleManifests( const bool installManifest,
|
||||
const bool removeManifest )
|
||||
{
|
||||
openvr_init::OpenVR_Init openvr_init(
|
||||
openvr_init::initializeOpenVR(
|
||||
openvr_init::OpenVrInitializationType::Utility );
|
||||
|
||||
int exit_code = ReturnErrorCode::SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user