| 1039 | } |
| 1040 | |
| 1041 | void StepSequencer::SaveState(FileStreamOut& out) |
| 1042 | { |
| 1043 | out << GetModuleSaveStateRev(); |
| 1044 | |
| 1045 | IDrawableModule::SaveState(out); |
| 1046 | |
| 1047 | mGrid->SaveState(out); |
| 1048 | |
| 1049 | int numMetaStepMasks = META_STEP_MAX * NUM_STEPSEQ_ROWS; |
| 1050 | out << numMetaStepMasks; |
| 1051 | for (int i = 0; i < numMetaStepMasks; ++i) |
| 1052 | out << mMetaStepMasks[i]; |
| 1053 | out << mHasExternalPulseSource; |
| 1054 | |
| 1055 | out << mGrid->GetWidth(); |
| 1056 | out << mGrid->GetHeight(); |
| 1057 | } |
| 1058 | |
| 1059 | void StepSequencer::LoadState(FileStreamIn& in, int rev) |
| 1060 | { |