Added user Vst and ladspa folders
the user vst folder nowbecome the default vstfolder. this is configurable in the setup dialog. The user ladspa folder is added to the list of folder to search
This commit is contained in:
@@ -43,8 +43,9 @@ class Engine;
|
||||
const QString PROJECTS_PATH = "projects/";
|
||||
const QString PRESETS_PATH = "presets/";
|
||||
const QString SAMPLES_PATH = "samples/";
|
||||
const QString GIG_PATH = "samples/gig";
|
||||
const QString SF2_PATH = "samples/sf2";
|
||||
const QString GIG_PATH = "samples/gig/";
|
||||
const QString SF2_PATH = "samples/sf2/";
|
||||
const QString LADSPA_PATH ="plugins/ladspa/";
|
||||
const QString DEFAULT_THEME_PATH = "themes/default/";
|
||||
const QString TRACK_ICON_PATH = "track_icons/";
|
||||
const QString LOCALE_PATH = "locale/";
|
||||
@@ -93,6 +94,16 @@ public:
|
||||
return workingDir() + GIG_PATH;
|
||||
}
|
||||
|
||||
QString userSf2Dir() const
|
||||
{
|
||||
return workingDir() + SF2_PATH;
|
||||
}
|
||||
|
||||
QString userLadspaDir() const
|
||||
{
|
||||
return workingDir() + LADSPA_PATH;
|
||||
}
|
||||
|
||||
QString factoryProjectsDir() const
|
||||
{
|
||||
return dataDir() + PROJECTS_PATH;
|
||||
|
||||
@@ -384,7 +384,7 @@ void ConfigManager::loadConfigFile()
|
||||
m_vstDir = windowsConfigPath( CSIDL_PROGRAM_FILES ) +
|
||||
QDir::separator() + "VstPlugins";
|
||||
#else
|
||||
m_vstDir = ensureTrailingSlash( QDir::home().absolutePath() );
|
||||
m_vstDir = m_workingDir + "plugins/vst" + QDir::separator();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -403,6 +403,7 @@ void ConfigManager::loadConfigFile()
|
||||
#else
|
||||
m_ladDir = qApp->applicationDirPath() + '/' + LIB_DIR + "/ladspa/";
|
||||
#endif
|
||||
m_ladDir += ","+userLadspaDir();
|
||||
}
|
||||
|
||||
#ifdef LMMS_HAVE_STK
|
||||
@@ -441,7 +442,10 @@ void ConfigManager::loadConfigFile()
|
||||
QDir().mkpath( userSamplesDir() );
|
||||
QDir().mkpath( userPresetsDir() );
|
||||
QDir().mkpath( userGigDir() );
|
||||
QDir().mkpath( sf2Dir() );
|
||||
QDir().mkpath( userSf2Dir() );
|
||||
QDir().mkpath( vstDir() );
|
||||
QDir().mkpath( userLadspaDir() );
|
||||
|
||||
}
|
||||
|
||||
upgrade();
|
||||
|
||||
@@ -612,12 +612,6 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) :
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( sf2_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( artwork_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( backgroundArtwork_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( fl_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( vst_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( lad_tw );
|
||||
@@ -629,7 +623,13 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) :
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( sf_tw );
|
||||
#endif
|
||||
pathSelectorLayout->addWidget( fl_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addWidget( artwork_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
pathSelectorLayout->addStretch();
|
||||
pathSelectorLayout->addWidget( backgroundArtwork_tw );
|
||||
pathSelectorLayout->addSpacing( 10 );
|
||||
|
||||
dir_layout->addWidget( pathSelectors );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user