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

module selection fixes

This commit is contained in:
jules 2014-11-12 15:50:03 +00:00
parent 48d468ddb3
commit 8980ed2b9c
5 changed files with 74 additions and 55 deletions

View file

@ -562,5 +562,20 @@ File findDefaultModulesFolder (bool mustContainJuceCoreModule)
if (mustContainJuceCoreModule)
return findDefaultModulesFolder (false);
File f (File::getSpecialLocation (File::currentApplicationFile));
for (;;)
{
File parent (f.getParentDirectory());
if (parent == f || ! parent.isDirectory())
break;
if (isJuceFolder (parent))
return parent.getChildFile ("modules");
f = parent;
}
return File::nonexistent;
}