static
| 229 | |
| 230 | //static |
| 231 | void ModuleSaveDataPanel::LoadPreset(IDrawableModule* module, std::string presetFilePath) |
| 232 | { |
| 233 | FileStreamIn presetFile(presetFilePath); |
| 234 | presetFile >> ModularSynth::sLoadingFileSaveStateRev; |
| 235 | TheSynth->SetIsLoadingState(true); |
| 236 | PatchCableSource::sIsLoadingModulePreset = true; |
| 237 | module->LoadState(presetFile, module->LoadModuleSaveStateRev(presetFile)); |
| 238 | PatchCableSource::sIsLoadingModulePreset = true; |
| 239 | TheSynth->SetIsLoadingState(false); |
| 240 | } |
| 241 | |
| 242 | void ModuleSaveDataPanel::DrawModule() |
| 243 | { |
nothing calls this directly
no test coverage detected