diff --git a/src/steamivrinput.cpp b/src/steamivrinput.cpp index d8269dc..57ba219 100644 --- a/src/steamivrinput.cpp +++ b/src/steamivrinput.cpp @@ -1,6 +1,7 @@ #include "steamivrinput.h" #include #include +#include void SteamIVRInput::Init( const bool init ) { @@ -14,8 +15,11 @@ void SteamIVRInput::Init( const bool init ) } } - auto error - = vr::VRInput()->SetActionManifestPath( m_actionManifestPath.c_str() ); + QString manifestPath + = QStandardPaths::locate( QStandardPaths::AppDataLocation, + QStringLiteral( "action_manifest.json" ) ); + auto error = vr::VRInput()->SetActionManifestPath( + manifestPath.toStdString().c_str() ); if ( error != vr::EVRInputError::VRInputError_None ) { std::cout << "Action manifest error\n"; diff --git a/src/steamivrinput.h b/src/steamivrinput.h index dea0dac..91e50f8 100644 --- a/src/steamivrinput.h +++ b/src/steamivrinput.h @@ -11,8 +11,6 @@ public: bool nextSongSet(); private: - const std::string m_actionManifestPath - = "YOUR_PATH_HERE\\action_manifest.json"; vr::VRActionHandle_t m_nextSongHandler = {}; vr::VRActionSetHandle_t m_mainSetHandler = {}; vr::VRActiveActionSet_t m_activeActionSet = {};