mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
Introjucer update to provide downloading of new modules directly from the website.
This commit is contained in:
parent
65902c0b99
commit
2d56bedab5
18 changed files with 606 additions and 400 deletions
|
|
@ -150,10 +150,16 @@ namespace FileHelpers
|
|||
bool isJuceFolder (const File& folder)
|
||||
{
|
||||
return folder.getFileName().containsIgnoreCase ("juce")
|
||||
&& folder.getChildFile ("modules").isDirectory();
|
||||
&& isModulesFolder (folder.getChildFile ("modules"));
|
||||
}
|
||||
|
||||
static File lookInFolderForJuceFolder (const File& folder)
|
||||
bool isModulesFolder (const File& folder)
|
||||
{
|
||||
return folder.getFileName().equalsIgnoreCase ("modules")
|
||||
&& folder.isDirectory();
|
||||
}
|
||||
|
||||
File lookInFolderForJuceFolder (const File& folder)
|
||||
{
|
||||
for (DirectoryIterator di (folder, false, "*juce*", File::findDirectories); di.next();)
|
||||
{
|
||||
|
|
@ -182,17 +188,4 @@ namespace FileHelpers
|
|||
|
||||
return File::nonexistent;
|
||||
}
|
||||
|
||||
File findDefaultJuceFolder()
|
||||
{
|
||||
File f = findParentJuceFolder (File::getSpecialLocation (File::currentApplicationFile));
|
||||
|
||||
if (! f.exists())
|
||||
f = lookInFolderForJuceFolder (File::getSpecialLocation (File::userHomeDirectory));
|
||||
|
||||
if (! f.exists())
|
||||
f = lookInFolderForJuceFolder (File::getSpecialLocation (File::userDocumentsDirectory));
|
||||
|
||||
return f;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue