MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Save

Method Save

Source/UserPrefs.cpp:147–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void UserPrefString::Save(int index, ofxJSONElement& prefsJson) //this numbering is a silly markup hack to get the json file to save ordered
148{
149 prefsJson.removeMember(mName);
150 prefsJson["**" + UserPrefsHolder::ToStringLeadingZeroes(index) + "**" + mName] = mValue;
151}
152
153bool UserPrefString::DiffersFromSavedValue() const
154{

Callers 9

SaveLayoutMethod · 0.45
SaveLayoutMethod · 0.45
SaveStateMethod · 0.45
SaveStateMethod · 0.45
SaveStateMethod · 0.45
SaveStateMethod · 0.45
SaveStateMethod · 0.45
SaveLayoutMethod · 0.45
SaveLayoutBaseMethod · 0.45

Calls 2

ofToIntFunction · 0.85
GetLabelMethod · 0.45

Tested by

no test coverage detected