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

Method LoadState

Source/CodeEntry.cpp:1318–1334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316}
1317
1318void CodeEntry::LoadState(FileStreamIn& in, bool shouldSetValue)
1319{
1320 int rev;
1321 in >> rev;
1322 LoadStateValidate(rev <= kSaveStateRev);
1323
1324 std::string var;
1325 in >> var;
1326 if (shouldSetValue)
1327 {
1328 UpdateString(var);
1329
1330 //Publish();
1331 //if (mListener != nullptr)
1332 // mListener->ExecuteCode(mString);
1333 }
1334}
1335
1336void CodeEntry::SetStyleFromJSON(const ofxJSONElement& vdict)
1337{

Callers

nothing calls this directly

Calls 1

LoadStateValidateFunction · 0.85

Tested by

no test coverage detected