MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / GetIntValue

Method GetIntValue

Source/Utility/IniFile.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 virtual int GetIntValue( int default_value ) const
71 {
72 int value;
73
74 if( sscanf( mValue.c_str(), "%d", &value ) != 1 )
75 {
76 value = default_value;
77 }
78 return value;
79 }
80
81 virtual float GetFloatValue( float default_value ) const
82 {

Callers 1

OpenPreferencesFileMethod · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected