1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Bug 2723 - VST_PATH environment variable fails for non-standard locations

This commit is contained in:
Leland Lucius 2021-03-28 14:02:21 -05:00
parent eb39642969
commit c9afd39845
2 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ PluginPaths VSTEffectsModule::FindPluginPaths(PluginManagerInterface & pm)
wxString vstpath = wxString::FromUTF8(getenv("VST_PATH")); wxString vstpath = wxString::FromUTF8(getenv("VST_PATH"));
if (!vstpath.empty()) if (!vstpath.empty())
{ {
wxStringTokenizer tok(vstpath); wxStringTokenizer tok(vstpath, wxPATH_SEP);
while (tok.HasMoreTokens()) while (tok.HasMoreTokens())
{ {
pathList.push_back(tok.GetNextToken()); pathList.push_back(tok.GetNextToken());

View File

@ -363,7 +363,7 @@ FilePaths LadspaEffectsModule::GetSearchPaths()
pathVar = wxString::FromUTF8(getenv("LADSPA_PATH")); pathVar = wxString::FromUTF8(getenv("LADSPA_PATH"));
if (!pathVar.empty()) if (!pathVar.empty())
{ {
wxStringTokenizer tok(pathVar); wxStringTokenizer tok(pathVar, wxPATH_SEP);
while (tok.HasMoreTokens()) while (tok.HasMoreTokens())
{ {
pathList.push_back(tok.GetNextToken()); pathList.push_back(tok.GetNextToken());