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:
parent
48d468ddb3
commit
8980ed2b9c
5 changed files with 74 additions and 55 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue