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

Method LoadState

Source/RadioButton.cpp:443–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443void RadioButton::LoadState(FileStreamIn& in, bool shouldSetValue)
444{
445 int rev;
446 in >> rev;
447 LoadStateValidate(rev <= kSaveStateRev);
448
449 float var;
450 in >> var;
451 if (shouldSetValue)
452 SetValueDirect(var, gTime);
453}
454
455bool RadioButton::CanBeTargetedBy(PatchCableSource* source) const
456{

Callers

nothing calls this directly

Calls 1

LoadStateValidateFunction · 0.85

Tested by

no test coverage detected