mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Projucer: Fixed an issue where the DemoRunner executable could not be found in the JUCE root directory
This commit is contained in:
parent
c448f8a2f9
commit
9c54ccc99b
1 changed files with 13 additions and 7 deletions
|
|
@ -732,14 +732,20 @@ File ProjucerApplication::findDemoRunnerExecutable() const noexcept
|
|||
extension = {};
|
||||
#endif
|
||||
|
||||
auto precompiledFile = getJUCEExamplesDirectoryPathFromGlobal().getChildFile ("DemoRunner" + extension);
|
||||
auto juceDir = getAppSettings().getStoredPath (Ids::jucePath).toString();
|
||||
|
||||
if (juceDir.isNotEmpty())
|
||||
{
|
||||
auto precompiledFile = File (juceDir).getChildFile ("DemoRunner" + extension);
|
||||
|
||||
#if JUCE_MAC
|
||||
if (precompiledFile.exists())
|
||||
#else
|
||||
if (precompiledFile.existsAsFile())
|
||||
#endif
|
||||
return precompiledFile;
|
||||
}
|
||||
|
||||
#if JUCE_MAC
|
||||
if (precompiledFile.exists())
|
||||
#else
|
||||
if (precompiledFile.existsAsFile())
|
||||
#endif
|
||||
return precompiledFile;
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue