| 1086 | } |
| 1087 | |
| 1088 | void VST3Wrapper::SaveUserPreset(const EffectDefinitionInterface& effect, const RegistryPath& name, const EffectSettings& settings) |
| 1089 | { |
| 1090 | using namespace Steinberg; |
| 1091 | |
| 1092 | const auto& vst3settings = GetSettings(settings); |
| 1093 | if(vst3settings.processorState.has_value()) |
| 1094 | { |
| 1095 | SetConfig(effect, PluginSettings::Private, name, processorStateKey, *vst3settings.processorState); |
| 1096 | if(vst3settings.controllerState.has_value()) |
| 1097 | SetConfig(effect, PluginSettings::Private, name, controllerStateKey, *vst3settings.controllerState); |
| 1098 | } |
| 1099 | if(!vst3settings.parameterChanges.empty()) |
| 1100 | SetConfig(effect, PluginSettings::Private, name, parametersKey, ParametersToString(vst3settings.parameterChanges)); |
| 1101 | } |
| 1102 | |
| 1103 | void VST3Wrapper::CopySettingsContents(const EffectSettings& src, EffectSettings& dst) |
| 1104 | { |
nothing calls this directly
no test coverage detected