Skip to content

Commit

Permalink
Find relative LADSPA plugins when running from build
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Oct 30, 2015
1 parent c98b633 commit 37a2252
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/core/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,17 @@ ConfigManager::ConfigManager() :
QString line = stream.readLine();

if (line.startsWith("lmms_SOURCE_DIR:")) {
// Current source directory contains respective data directory
QString srcDir = line.section('=', -1).trimmed();
QDir::addSearchPath("data", srcDir + "/data/");
break;
}
if (line.startsWith("lmms_BINARY_DIR:")) {
// Current build directory contains respective LADSPA plugins
QString binDir = line.section('=', -1).trimmed();
m_ladDir = binDir + "/plugins/ladspa/";
m_ladDir += "," + userLadspaDir();
}

}

cmakeCache.close();
Expand Down

0 comments on commit 37a2252

Please sign in to comment.