Browse Source

Adjust jsfx things to changes in Carla internals

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.0
falkTX 2 years ago
parent
commit
eeccc9cb7d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 6 additions and 5 deletions
  1. +5
    -4
      source/backend/utils/CachedPlugins.cpp
  2. +1
    -1
      source/discovery/carla-discovery.cpp

+ 5
- 4
source/backend/utils/CachedPlugins.cpp View File

@@ -114,14 +114,15 @@ static void findJSFXs(const char* const jsfxPaths)

for (water::String *it = splitPaths.begin(), *end = splitPaths.end(); it != end; ++it)
{
water::Array<water::File> results;
water::File path(*it);
std::vector<water::File> results;
const water::File path(*it);

if (path.findChildFiles(results, water::File::findFiles|water::File::ignoreHiddenFiles, true, "*") > 0)
{
for (const water::File& file : results)
for (std::vector<water::File>::iterator it=results.begin(), end=results.end(); it != end; ++it)
{
water::String fileExt = file.getFileExtension();
const water::File& file(*it);
const water::String fileExt = file.getFileExtension();
if (fileExt.isEmpty() || fileExt.equalsIgnoreCase(".jsfx"))
gJSFXs.add(CarlaJsfxUnit(path, file));
}


+ 1
- 1
source/discovery/carla-discovery.cpp View File

@@ -2119,7 +2119,7 @@ static void do_fluidsynth_check(const char* const filename, const PluginType typ
#ifndef BUILD_BRIDGE
static void do_jsfx_check(const char* const filename, bool doInit)
{
const water::File file = File(CharPointer_UTF8(filename));
const water::File file(filename);

ysfx_config_u config(ysfx_config_new());



Loading…
Cancel
Save