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 4550275a14657e194b3400ef97cadbd2aae8472d
parent 6c87932cbccf7596ff5fc16e40af01eb741793be
Author: dsp56300 <lyve2909+githubdsp56300@gmail.com>
Date:   Wed, 14 Jul 2021 11:41:19 +0200

do not crash if ROM cannot be found

Diffstat:
Msource/virusLib/microcontroller.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/source/virusLib/microcontroller.cpp b/source/virusLib/microcontroller.cpp @@ -16,6 +16,9 @@ namespace virusLib { Microcontroller::Microcontroller(HDI08& _hdi08, ROMFile& _romFile) : m_hdi08(_hdi08), m_rom(_romFile), m_currentBanks({0}), m_currentSingles({0}) { + if(!_romFile.isValid()) + return; + m_globalSettings.fill(0); m_currentBanks.fill(0);