Browse Source

Quick tweaks for OBS just to find discovery tools

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 1 year ago
parent
commit
fbae8f398d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      source/frontend/pluginlist/pluginlistdialog.cpp

+ 17
- 1
source/frontend/pluginlist/pluginlistdialog.cpp View File

@@ -49,6 +49,12 @@


#include <cstdlib> #include <cstdlib>


#ifdef BUILDING_CARLA_OBS
extern "C" {
const char *get_carla_bin_path(void);
}
#endif

CARLA_BACKEND_USE_NAMESPACE CARLA_BACKEND_USE_NAMESPACE


// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------
@@ -1004,7 +1010,17 @@ struct PluginListDialog::Self {
paths.init(); paths.init();
paths.loadFromEnv(); paths.loadFromEnv();


CarlaPluginDiscoveryHandle handle = carla_plugin_discovery_start("/usr/lib/carla/carla-discovery-native",
#ifdef BUILDING_CARLA_OBS
QCarlaString binPath(get_carla_bin_path());
binPath += CARLA_OS_SEP_STR "carla-discovery-native";
#ifdef CARLA_OS_WIN
binPath += ".exe";
#endif
#else
QCarlaString binPath("/usr/lib/carla/carla-discovery-native");
#endif

CarlaPluginDiscoveryHandle handle = carla_plugin_discovery_start(binPath.toUtf8().constData(),
PLUGIN_VST3, PLUGIN_VST3,
paths.vst3.toUtf8().constData(), paths.vst3.toUtf8().constData(),
_discoveryCallback, _discoveryCallback,


Loading…
Cancel
Save