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:
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);