| 1534 | } |
| 1535 | |
| 1536 | void NoteStepSequencer::LoadState(FileStreamIn& in, int rev) |
| 1537 | { |
| 1538 | IDrawableModule::LoadState(in, rev); |
| 1539 | |
| 1540 | if (ModularSynth::sLoadingFileSaveStateRev < 423) |
| 1541 | in >> rev; |
| 1542 | LoadStateValidate(rev <= GetModuleSaveStateRev()); |
| 1543 | |
| 1544 | mGrid->LoadState(in); |
| 1545 | mVelocityGrid->LoadState(in); |
| 1546 | GridUpdated(mGrid, 0, 0, 0, 0); |
| 1547 | GridUpdated(mVelocityGrid, 0, 0, 0, 0); |
| 1548 | if (rev >= 2) |
| 1549 | in >> mHasExternalPulseSource; |
| 1550 | if (rev >= 3) |
| 1551 | { |
| 1552 | float width, height; |
| 1553 | in >> width; |
| 1554 | in >> height; |
| 1555 | Resize(width, height); |
| 1556 | } |
| 1557 | } |
nothing calls this directly
no test coverage detected