Browse Source

VST plugin search path improvement.

tags/2021-05-28
jules 12 years ago
parent
commit
d50bb757dc
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 10
- 4
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -2876,13 +2876,19 @@ FileSearchPath VSTPluginFormat::getDefaultLocationsToSearch()
{
#if JUCE_MAC
return FileSearchPath ("~/Library/Audio/Plug-Ins/VST;/Library/Audio/Plug-Ins/VST");
#elif JUCE_LINUX
return FileSearchPath ("/usr/lib/vst");
#elif JUCE_WINDOWS
const String programFiles (File::getSpecialLocation (File::globalApplicationsDirectory).getFullPathName());
return FileSearchPath (WindowsRegistry::getValue ("HKLM\\Software\\VST\\VSTPluginsPath",
programFiles + "\\Steinberg\\VstPlugins"));
#elif JUCE_LINUX
return FileSearchPath ("/usr/lib/vst");
FileSearchPath paths;
paths.add (WindowsRegistry::getValue ("HKLM\\Software\\VST\\VSTPluginsPath",
programFiles + "\\Steinberg\\VstPlugins"));
paths.removeNonExistentPaths();
paths.add (WindowsRegistry::getValue ("HKLM\\Software\\VST\\VSTPluginsPath",
programFiles + "\\VstPlugins"));
return paths;
#endif
}


Loading…
Cancel
Save