1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoided duplicate entries in the default VST search path

This commit is contained in:
jules 2017-06-07 10:07:02 +01:00
parent 26596fbfad
commit 82f3ab616a

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