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 f4e7798f9a128b1bc58ec90567858f9712992827
parent 2caa927c2f27910ab430c30c75b100ee3b613ae7
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue,  5 Nov 2024 16:59:03 +0100

update wavetables cache dir to point to new location

Diffstat:
Msource/xtJucePlugin/weData.cpp | 2++
Msource/xtJucePlugin/xtEditor.cpp | 5++---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/source/xtJucePlugin/weData.cpp b/source/xtJucePlugin/weData.cpp @@ -447,6 +447,8 @@ namespace xtJucePlugin auto sysex = xt::State::createTableData(*table, i, false); data.insert(data.end(), sysex.begin(), sysex.end()); } + + synthLib::createDirectory(m_cacheDir); synthLib::writeFile(romWaves, data); } diff --git a/source/xtJucePlugin/xtEditor.cpp b/source/xtJucePlugin/xtEditor.cpp @@ -178,10 +178,9 @@ namespace xtJucePlugin { if(_object.getName() == "waveEditorContainer") { - const auto configOptions = getProcessor().getConfigOptions(); - const auto dir = configOptions.getDefaultFile().getParentDirectory(); + const auto dir = getProcessor().getDataFolder(false) + "wavetables/"; - m_waveEditor = new WaveEditor(*this, dir); + m_waveEditor = new WaveEditor(*this, juce::File(dir)); getXtController().setWaveEditor(m_waveEditor); return m_waveEditor; }