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

Method LoadState

Source/StepSequencer.cpp:1059–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057}
1058
1059void StepSequencer::LoadState(FileStreamIn& in, int rev)
1060{
1061 IDrawableModule::LoadState(in, rev);
1062
1063 if (ModularSynth::sLoadingFileSaveStateRev < 423)
1064 in >> rev;
1065 LoadStateValidate(rev <= GetModuleSaveStateRev());
1066
1067 mGrid->LoadState(in);
1068
1069 if (rev >= 1)
1070 {
1071 int numMetaStepMasks;
1072 in >> numMetaStepMasks;
1073 for (int i = 0; i < numMetaStepMasks; ++i)
1074 in >> mMetaStepMasks[i];
1075 }
1076 if (rev >= 2)
1077 in >> mHasExternalPulseSource;
1078 if (rev >= 3)
1079 {
1080 float gridWidth, gridHeight;
1081 in >> gridWidth;
1082 in >> gridHeight;
1083 mGrid->SetDimensions(gridWidth, gridHeight);
1084 }
1085}
1086
1087StepSequencerRow::StepSequencerRow(StepSequencer* seq, UIGrid* grid, int row)
1088: mSeq(seq)

Callers

nothing calls this directly

Calls 2

LoadStateValidateFunction · 0.85
SetDimensionsMethod · 0.45

Tested by

no test coverage detected