1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00

Projucer: Increase the subfolder recursion depth when searching for modules and fix a couple of places where paths containing ~ were not being parsed correctly

This commit is contained in:
ed 2018-07-10 12:57:51 +01:00
parent 934e2995ff
commit e6c85b8a08

View file

@ -174,7 +174,7 @@ Result ModuleList::addAllModulesInFolder (const File& path)
{
if (! tryToAddModuleFromFolder (path))
{
int subfolders = 2;
int subfolders = 5;
return addAllModulesInSubfoldersRecursively (path, subfolders);
}
@ -324,6 +324,8 @@ void ModuleList::scanGlobalUserModulePath()
for (auto p : paths)
{
p = p.replace ("~", File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
auto f = File::createFileWithoutCheckingPath (p.trim());
if (f.exists())
addAllModulesInFolder (f);
@ -715,6 +717,8 @@ File EnabledModuleList::findUserModuleFolder (const String& possiblePaths, const
for (auto p : paths)
{
p = p.replace ("~", File::getSpecialLocation (File::userHomeDirectory).getFullPathName());
auto f = File::createFileWithoutCheckingPath (p.trim());
if (f.exists())
{