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

Method LoadState

Source/Checkbox.cpp:239–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void Checkbox::LoadState(FileStreamIn& in, bool shouldSetValue)
240{
241 int rev;
242 in >> rev;
243 LoadStateValidate(rev <= kSaveStateRev);
244
245 float var;
246 in >> var;
247 if (shouldSetValue)
248 SetValueDirect(var, gTime);
249}

Callers

nothing calls this directly

Calls 1

LoadStateValidateFunction · 0.85

Tested by

no test coverage detected