Browse Source

Avoided duplicate entries in the default VST search path

tags/2021-05-28
jules 8 years ago
parent
commit
82f3ab616a
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

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

@@ -2833,12 +2833,11 @@ FileSearchPath VSTPluginFormat::getDefaultLocationsToSearch()
const String programFiles (File::getSpecialLocation (File::globalApplicationsDirectory).getFullPathName());
FileSearchPath paths;
paths.add (WindowsRegistry::getValue ("HKEY_LOCAL_MACHINE\\Software\\VST\\VSTPluginsPath",
programFiles + "\\Steinberg\\VstPlugins"));
paths.add (WindowsRegistry::getValue ("HKEY_LOCAL_MACHINE\\Software\\VST\\VSTPluginsPath"));
paths.addIfNotAlreadyThere (programFiles + "\\Steinberg\\VstPlugins");
paths.removeNonExistentPaths();
paths.add (WindowsRegistry::getValue ("HKEY_LOCAL_MACHINE\\Software\\VST\\VSTPluginsPath",
programFiles + "\\VstPlugins"));
paths.addIfNotAlreadyThere (programFiles + "\\VstPlugins");
paths.removeRedundantPaths();
return paths;
#elif JUCE_IOS
// on iOS you can only load plug-ins inside the hosts bundle folder


Loading…
Cancel
Save