commit 73ccc6032bed40f629ecbbfe1bd6d19b3a444144 parent ee34f50cbdbd9586855a2b77fea581c9723fc54d Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Wed, 16 Mar 2022 22:17:56 +0100 Merge branch 'dsp56300' into genericUI Diffstat:
M | source/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);