Browse Source

Projucer: Fixed an issue where the DemoRunner executable could not be found in the JUCE root directory

tags/2021-05-28
ed 8 years ago
parent
commit
9c54ccc99b
1 changed files with 13 additions and 7 deletions
  1. +13
    -7
      extras/Projucer/Source/Application/jucer_Application.cpp

+ 13
- 7
extras/Projucer/Source/Application/jucer_Application.cpp View File

@@ -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…
Cancel
Save