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 161e43987ed0002583eb7f34f7a5bda7d4ff6cc4
parent 53e0b9db4bbccb5419c6cdaa328bea6a4c93629c
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Mon,  4 Nov 2024 11:14:03 +0100

do not migrate cache file but delete it instead

Diffstat:
Msource/jucePluginLib/patchdb/db.cpp | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/source/jucePluginLib/patchdb/db.cpp b/source/jucePluginLib/patchdb/db.cpp @@ -833,9 +833,14 @@ namespace pluginLib::patchDB for (const auto& file : files) { - if( !synthLib::hasExtension(file, ".json") && - !synthLib::hasExtension(file, ".syx") && - !synthLib::hasExtension(file, ".cache")) + if(synthLib::hasExtension(file, ".cache")) + { + juce::File f(file); + f.deleteFile(); + continue; + } + + if(!synthLib::hasExtension(file, ".json") && !synthLib::hasExtension(file, ".syx")) continue; juce::File fileFrom(file);