gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit efa2d861b74a2bf8ece8ec8bce1042e7b93253c6
parent 390770221b8d0f4767260b011ad188777778c166
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu, 19 May 2022 23:38:20 +0200

continue collecting parameter issues before aborting import if midi packet

Diffstat:
Msource/jucePluginLib/parameterdescriptions.cpp | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/source/jucePluginLib/parameterdescriptions.cpp b/source/jucePluginLib/parameterdescriptions.cpp @@ -458,6 +458,8 @@ namespace pluginLib MidiPacket packet(_key, std::move(bytes)); + bool hasErrors = false; + // post-read validation for(size_t i=0; i<packet.definitions().size(); ++i) { @@ -477,12 +479,13 @@ namespace pluginLib if(!getIndexByName(index, p.paramName)) { + hasErrors = true; _errors << "specified parameter " << p.paramName << " does not exist" << std::endl; - return; } } } - m_midiPackets.insert(std::make_pair(_key, packet)); + if(!hasErrors) + m_midiPackets.insert(std::make_pair(_key, packet)); } }