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 b2f3d27be95864cdb1a7a908fe1c4f9a4f5b1c66
parent 2d8b0410f25dba2904061ff98cee5ef2a2bb880d
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu,  6 Feb 2025 23:02:12 +0100

LV2 needs to be specified as folder, not as the actual dll, handle that in the tester directly

Diffstat:
Msource/pluginTester/pluginTester.cpp | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/source/pluginTester/pluginTester.cpp b/source/pluginTester/pluginTester.cpp @@ -38,15 +38,17 @@ int main(const int _argc, char* _argv[]) { ConsoleApplication app; - const String pluginPathName = cmdLine.get("plugin"); + std::string pluginPathName = cmdLine.get("plugin"); - if (pluginPathName.isEmpty()) + if (pluginPathName.empty()) { return error("No plugin specified"); } - const String pluginPath = baseLib::filesystem::getPath(_argv[1]); - const String pluginFilename = baseLib::filesystem::getFilenameWithoutPath(_argv[1]); + // juce wants the folder for a LV2 plugin instead of the actual file + auto path = baseLib::filesystem::getPath(pluginPathName); + if (baseLib::filesystem::hasExtension(path, ".lv2")) + pluginPathName = path; JuceAppLifetimeObjects jalto;