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

Function RegisterUserPref

Source/UserPrefs.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36UserPrefsHolder UserPrefs;
37
38void RegisterUserPref(UserPref* pref)
39{
40 UserPrefs.mUserPrefs.push_back(pref);
41}
42
43// Helper function to convert string to appropriate type and set the JSON value
44void setValueFromString(Json::Value& element, const std::string& value)

Callers 7

UserPrefStringMethod · 0.85
UserPrefDropdownIntMethod · 0.85
UserPrefTextEntryIntMethod · 0.85
UserPrefBoolMethod · 0.85
UserPrefFloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected