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

Method RefreshStyleFiles

Source/ScriptModule.cpp:1045–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043}
1044
1045void ScriptModule::RefreshStyleFiles()
1046{
1047 ofxJSONElement root;
1048 if (File(ofToDataPath("scriptstyles.json")).existsAsFile())
1049 root.open(ofToDataPath("scriptstyles.json"));
1050 else
1051 root.open(ofToResourcePath("userdata_original/scriptstyles.json"));
1052 sStyleJSON = root["styles"];
1053}
1054
1055void ScriptModule::RefreshScriptFiles()
1056{

Callers

nothing calls this directly

Calls 3

ofToDataPathFunction · 0.85
ofToResourcePathFunction · 0.85
openMethod · 0.80

Tested by

no test coverage detected