From e698e29a593c1da999678a3004bf94fd33a7f16f Mon Sep 17 00:00:00 2001 From: Roland Rabien Date: Mon, 25 Sep 2023 17:55:04 -0700 Subject: [PATCH] Fix loading presets if preset name doesn't match filename --- modules/gin | 2 +- plugin/Source/PluginProcessor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gin b/modules/gin index a1330fd..69cbdc6 160000 --- a/modules/gin +++ b/modules/gin @@ -1 +1 @@ -Subproject commit a1330fdfd42df293cfdb08780faa89aaccb4051a +Subproject commit 69cbdc6741e3a9efa1988407a3b4e5dcdf6aa1c4 diff --git a/plugin/Source/PluginProcessor.cpp b/plugin/Source/PluginProcessor.cpp index 2ec7102..8cb2384 100644 --- a/plugin/Source/PluginProcessor.cpp +++ b/plugin/Source/PluginProcessor.cpp @@ -407,7 +407,7 @@ void extractWavetables() for (auto f : src.findChildFiles (juce::File::findFiles, false, "*.xml")) { - auto presetreset = juce::ValueTree::fromXml (f.loadFileAsString()); + auto preset = juce::ValueTree::fromXml (f.loadFileAsString()); auto state = preset.getChildWithName ("state"); auto name1 = state.getProperty ("wt1");