| 427 | } |
| 428 | |
| 429 | void EventCanvas::LoadState(FileStreamIn& in, int rev) |
| 430 | { |
| 431 | IDrawableModule::LoadState(in, rev); |
| 432 | |
| 433 | if (ModularSynth::sLoadingFileSaveStateRev < 423) |
| 434 | in >> rev; |
| 435 | LoadStateValidate(rev <= GetModuleSaveStateRev()); |
| 436 | |
| 437 | int size; |
| 438 | in >> size; |
| 439 | mControlCables.resize(size); |
| 440 | for (auto cable : mControlCables) |
| 441 | { |
| 442 | std::string path; |
| 443 | in >> path; |
| 444 | cable->SetTarget(TheSynth->FindUIControl(path)); |
| 445 | } |
| 446 | |
| 447 | mCanvas->LoadState(in); |
| 448 | } |
| 449 | |
| 450 | std::vector<IUIControl*> EventCanvas::ControlsToIgnoreInSaveState() const |
| 451 | { |
nothing calls this directly
no test coverage detected