Fixes Startup Error, and ghost profiles 5.0.2 (#422)

* fixed unsafe chaperone issue

* fixed phantom names on offset/video profiles

* version strings
This commit is contained in:
ykeara
2020-04-20 12:44:29 -05:00
committed by GitHub
parent b1b0257133
commit deb0d4a324
6 changed files with 12 additions and 7 deletions
@@ -46,6 +46,7 @@ struct OffsetProfile : settings::ISettingsObject
{
settings::SettingsObjectData o;
o.addValue( profileName );
o.addValue( static_cast<double>( offsetX ) );
o.addValue( static_cast<double>( offsetY ) );
o.addValue( static_cast<double>( offsetZ ) );
@@ -57,6 +58,7 @@ struct OffsetProfile : settings::ISettingsObject
virtual void loadSettings( settings::SettingsObjectData& obj ) override
{
profileName = ( obj.getNextValueOrDefault( "" ) );
offsetX = static_cast<float>( obj.getNextValueOrDefault( 0.0 ) );
offsetY = static_cast<float>( obj.getNextValueOrDefault( 0.0 ) );
offsetZ = static_cast<float>( obj.getNextValueOrDefault( 0.0 ) );