replaced locally created api keys with proper api keys

This commit is contained in:
ykeara
2019-01-09 19:25:14 -06:00
parent b374ff42f5
commit 454131f0a0
+13 -14
View File
@@ -29,9 +29,8 @@ namespace advsettings
// vrsettings_steamvr_allowInterleavedReprojection = // vrsettings_steamvr_allowInterleavedReprojection =
// "allowInterleavedReprojection"; // "allowInterleavedReprojection";
static const char* vrsettings_steamvr_supersampleScale = "supersampleScale"; //static const char* vrsettings_steamvr_supersampleScale = "supersampleScale";
static const char* vrsettings_steamvr_allowSupersampleFiltering //static const char* vrsettings_steamvr_allowSupersampleFiltering = "allowSupersampleFiltering";
= "allowSupersampleFiltering";
static const char* vrsettings_compositor_category = "compositor"; static const char* vrsettings_compositor_category = "compositor";
void SteamVRTabController::initStage1() void SteamVRTabController::initStage1()
@@ -140,7 +139,7 @@ Q_INVOKABLE QString
return QString::fromStdString( steamvrProfiles[index].profileName ); return QString::fromStdString( steamvrProfiles[index].profileName );
} }
} }
//TODO
void SteamVRTabController::eventLoopTick() void SteamVRTabController::eventLoopTick()
{ {
if ( settingsUpdateCounter >= 50 ) if ( settingsUpdateCounter >= 50 )
@@ -148,12 +147,12 @@ void SteamVRTabController::eventLoopTick()
vr::EVRSettingsError vrSettingsError; vr::EVRSettingsError vrSettingsError;
auto ss auto ss
= vr::VRSettings()->GetFloat( vr::k_pch_SteamVR_Section, = vr::VRSettings()->GetFloat( vr::k_pch_SteamVR_Section,
vrsettings_steamvr_supersampleScale, vr::k_pch_SteamVR_SupersampleScale_Float,
&vrSettingsError ); &vrSettingsError );
if ( vrSettingsError != vr::VRSettingsError_None ) if ( vrSettingsError != vr::VRSettingsError_None )
{ {
LOG( WARNING ) << "Could not read \"" LOG( WARNING ) << "Could not read \""
<< vrsettings_steamvr_supersampleScale << vr::k_pch_SteamVR_SupersampleScale_Float
<< "\" setting: " << "\" setting: "
<< vr::VRSettings()->GetSettingsErrorNameFromEnum( << vr::VRSettings()->GetSettingsErrorNameFromEnum(
vrSettingsError ); vrSettingsError );
@@ -205,12 +204,12 @@ void SteamVRTabController::eventLoopTick()
} }
auto sf = vr::VRSettings()->GetBool( auto sf = vr::VRSettings()->GetBool(
vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_Section,
vrsettings_steamvr_allowSupersampleFiltering, vr::k_pch_SteamVR_AllowSupersampleFiltering_Bool,
&vrSettingsError ); &vrSettingsError );
if ( vrSettingsError != vr::VRSettingsError_None ) if ( vrSettingsError != vr::VRSettingsError_None )
{ {
LOG( WARNING ) << "Could not read \"" LOG( WARNING ) << "Could not read \""
<< vrsettings_steamvr_allowSupersampleFiltering << vr::k_pch_SteamVR_AllowSupersampleFiltering_Bool
<< "\" setting: " << "\" setting: "
<< vr::VRSettings()->GetSettingsErrorNameFromEnum( << vr::VRSettings()->GetSettingsErrorNameFromEnum(
vrSettingsError ); vrSettingsError );
@@ -240,7 +239,7 @@ void SteamVRTabController::setSuperSampling( float value, bool notify )
<< " => " << value; << " => " << value;
m_superSampling = value; m_superSampling = value;
vr::VRSettings()->SetFloat( vr::k_pch_SteamVR_Section, vr::VRSettings()->SetFloat( vr::k_pch_SteamVR_Section,
vrsettings_steamvr_supersampleScale, vr::k_pch_SteamVR_SupersampleScale_Float,
m_superSampling ); m_superSampling );
vr::VRSettings()->Sync(); vr::VRSettings()->Sync();
if ( notify ) if ( notify )
@@ -369,7 +368,7 @@ void SteamVRTabController::setAllowSupersampleFiltering( bool value,
{ {
m_allowSupersampleFiltering = value; m_allowSupersampleFiltering = value;
vr::VRSettings()->SetBool( vr::k_pch_SteamVR_Section, vr::VRSettings()->SetBool( vr::k_pch_SteamVR_Section,
vrsettings_steamvr_allowSupersampleFiltering, vr::k_pch_SteamVR_AllowSupersampleFiltering_Bool,
m_allowSupersampleFiltering ); m_allowSupersampleFiltering );
vr::VRSettings()->Sync(); vr::VRSettings()->Sync();
if ( notify ) if ( notify )
@@ -385,12 +384,12 @@ void SteamVRTabController::reset()
vr::EVRSettingsError vrSettingsError; vr::EVRSettingsError vrSettingsError;
vr::VRSettings()->RemoveKeyInSection( vr::k_pch_SteamVR_Section, vr::VRSettings()->RemoveKeyInSection( vr::k_pch_SteamVR_Section,
vrsettings_steamvr_supersampleScale, vr::k_pch_SteamVR_SupersampleScale_Float,
&vrSettingsError ); &vrSettingsError );
if ( vrSettingsError != vr::VRSettingsError_None ) if ( vrSettingsError != vr::VRSettingsError_None )
{ {
LOG( WARNING ) << "Could not remove \"" LOG( WARNING ) << "Could not remove \""
<< vrsettings_steamvr_supersampleScale << "\" setting: " << vr::k_pch_SteamVR_SupersampleScale_Float << "\" setting: "
<< vr::VRSettings()->GetSettingsErrorNameFromEnum( << vr::VRSettings()->GetSettingsErrorNameFromEnum(
vrSettingsError ); vrSettingsError );
} }
@@ -412,12 +411,12 @@ void SteamVRTabController::reset()
vr::VRSettings()->RemoveKeyInSection( vr::VRSettings()->RemoveKeyInSection(
vr::k_pch_SteamVR_Section, vr::k_pch_SteamVR_Section,
vrsettings_steamvr_allowSupersampleFiltering, vr::k_pch_SteamVR_AllowSupersampleFiltering_Bool,
&vrSettingsError ); &vrSettingsError );
if ( vrSettingsError != vr::VRSettingsError_None ) if ( vrSettingsError != vr::VRSettingsError_None )
{ {
LOG( WARNING ) << "Could not remove \"" LOG( WARNING ) << "Could not remove \""
<< vrsettings_steamvr_allowSupersampleFiltering << vr::k_pch_SteamVR_AllowSupersampleFiltering_Bool
<< "\" setting: " << "\" setting: "
<< vr::VRSettings()->GetSettingsErrorNameFromEnum( << vr::VRSettings()->GetSettingsErrorNameFromEnum(
vrSettingsError ); vrSettingsError );