| 1057 | } |
| 1058 | |
| 1059 | void 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 | |
| 1087 | StepSequencerRow::StepSequencerRow(StepSequencer* seq, UIGrid* grid, int row) |
| 1088 | : mSeq(seq) |
nothing calls this directly
no test coverage detected