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

Method CleanUpSave

Source/UserPrefsEditor.cpp:376–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void UserPrefsEditor::CleanUpSave(std::string& json) //remove the markup hack that got the json file to save ordered
377{
378 for (int i = 0; i < (int)UserPrefs.mUserPrefs.size(); ++i)
379 ofStringReplace(json, "**" + UserPrefsHolder::ToStringLeadingZeroes(i) + "**", "", true);
380}
381
382bool UserPrefsEditor::PrefRequiresRestart(UserPref* pref) const
383{

Callers

nothing calls this directly

Calls 2

ofStringReplaceFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected