mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-09 01:26:39 -04:00
Use proper path seperator for LADSPA_PATH
According to http://www.ladspa.org/ladspa_sdk/shared_plugins.html, LADSPA_PATH is supposed to be delimited by colons. This patch does so, except on Windows. On Windows we use ';' instead of ':' since colon is a legal character for a path.
This commit is contained in:
@@ -119,6 +119,13 @@ inline bool typeInfo<float>::isEqual( float _x, float _y )
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef LMMS_BUILD_WIN32
|
||||
#define PATH_SEPERATOR = ';';
|
||||
#else
|
||||
#define PATH_SEPERATOR = ':';
|
||||
#endif
|
||||
|
||||
|
||||
#define DEFAULT_CHANNELS 2
|
||||
#define LMMS_DISABLE_SURROUND
|
||||
#ifdef LMMS_DISABLE_SURROUND
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
ladspaManager::ladspaManager()
|
||||
{
|
||||
QStringList ladspaDirectories = QString( getenv( "LADSPA_PATH" ) ).
|
||||
split( ',' );
|
||||
split( PATH_SEPERATOR );
|
||||
ladspaDirectories += configManager::inst()->ladspaDir().split( ',' );
|
||||
|
||||
ladspaDirectories.push_back( configManager::inst()->pluginDir() + "ladspa" );
|
||||
|
||||
Reference in New Issue
Block a user