| @@ -6806,9 +6806,11 @@ private: | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| #ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH | |||||
| if (const char* const projFolder = ((CarlaPluginLV2*)handle)->pData->engine->getCurrentProjectFolder()) | if (const char* const projFolder = ((CarlaPluginLV2*)handle)->pData->engine->getCurrentProjectFolder()) | ||||
| target = projFolder; | target = projFolder; | ||||
| else | else | ||||
| #endif | |||||
| target = File::getCurrentWorkingDirectory(); | target = File::getCurrentWorkingDirectory(); | ||||
| target = target.getChildFile(path); | target = target.getChildFile(path); | ||||
| @@ -6832,9 +6834,11 @@ private: | |||||
| File target; | File target; | ||||
| #ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH | |||||
| if (const char* const projFolder = ((CarlaPluginLV2*)handle)->pData->engine->getCurrentProjectFolder()) | if (const char* const projFolder = ((CarlaPluginLV2*)handle)->pData->engine->getCurrentProjectFolder()) | ||||
| target = projFolder; | target = projFolder; | ||||
| else | else | ||||
| #endif | |||||
| target = File::getCurrentWorkingDirectory(); | target = File::getCurrentWorkingDirectory(); | ||||
| return strdup(File(absolute_path).getRelativePathFrom(target).toRawUTF8()); | return strdup(File(absolute_path).getRelativePathFrom(target).toRawUTF8()); | ||||
| @@ -6852,9 +6856,11 @@ private: | |||||
| File base; | File base; | ||||
| #ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH | |||||
| if (const char* const projFolder = ((CarlaPluginLV2*)handle)->pData->engine->getCurrentProjectFolder()) | if (const char* const projFolder = ((CarlaPluginLV2*)handle)->pData->engine->getCurrentProjectFolder()) | ||||
| base = projFolder; | base = projFolder; | ||||
| else | else | ||||
| #endif | |||||
| base = File::getCurrentWorkingDirectory(); | base = File::getCurrentWorkingDirectory(); | ||||
| return strdup(base.getChildFile(abstract_path).getFullPathName().toRawUTF8()); | return strdup(base.getChildFile(abstract_path).getFullPathName().toRawUTF8()); | ||||