1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

LV2 Client: Avoid assertion when invoking manifest writer with a relative path

This commit is contained in:
reuk 2022-12-13 20:36:23 +00:00
parent 6f458086f9
commit f47041eefd
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -813,7 +813,11 @@ struct RecallFeature
{
const ScopedJuceInitialiser_GUI scope;
const auto processor = LV2PluginInstance::createProcessorInstance();
const File absolutePath { CharPointer_UTF8 { libraryPath } };
const String pathString { CharPointer_UTF8 { libraryPath } };
const auto absolutePath = File::isAbsolutePath (pathString) ? File (pathString)
: File::getCurrentWorkingDirectory().getChildFile (pathString);
const auto writers = { writeManifestTtl, writeDspTtl, writeUiTtl };