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 c8b47820131b197a99a8fcdac12db3d0c4e2e3d7
parent b4917b15aafd68001309ef3cfbea73aed35f39d2
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Wed, 16 Mar 2022 22:17:40 +0100

fix loading of Virus Powercore banks

Diffstat:
Msource/jucePlugin/ui/Virus_PatchBrowser.cpp | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/source/jucePlugin/ui/Virus_PatchBrowser.cpp b/source/jucePlugin/ui/Virus_PatchBrowser.cpp @@ -174,8 +174,10 @@ uint32_t PatchBrowser::loadBankFile(std::vector<Patch>& _result, std::set<std::s { std::vector<uint8_t> data; - if (!synthLib::MidiToSysex::readFile(data, file.getFullPathName().getCharPointer())) - return 0; + synthLib::MidiToSysex::readFile(data, file.getFullPathName().getCharPointer()); + + if(data.empty()) + return 0; std::vector<std::vector<uint8_t>> packets; splitMultipleSysex(packets, data);