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:
@@ -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 ) );
|
||||
|
||||
@@ -41,6 +41,7 @@ struct VideoProfile : settings::ISettingsObject
|
||||
{
|
||||
settings::SettingsObjectData o;
|
||||
|
||||
o.addValue( profileName );
|
||||
o.addValue( static_cast<double>( supersampling ) );
|
||||
|
||||
o.addValue( anisotropicFiltering );
|
||||
@@ -64,6 +65,7 @@ struct VideoProfile : settings::ISettingsObject
|
||||
|
||||
virtual void loadSettings( settings::SettingsObjectData& obj ) override
|
||||
{
|
||||
profileName = obj.getNextValueOrDefault( "" );
|
||||
supersampling = static_cast<float>( obj.getNextValueOrDefault( 1.0 ) );
|
||||
|
||||
anisotropicFiltering = obj.getNextValueOrDefault( false );
|
||||
|
||||
Reference in New Issue
Block a user