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

Fixed an issue where the DemoRunner would not find any assets when opened manually on macOS

This commit is contained in:
hogliux 2018-03-16 10:10:18 +00:00
parent 7d451b984a
commit 1be7db03cd
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ inline File getExamplesDirectory() noexcept
return mo.toString();
#else
auto currentFile = File::getSpecialLocation (File::SpecialLocationType::currentExecutableFile);
auto currentFile = File::getSpecialLocation (File::SpecialLocationType::currentApplicationFile);
auto exampleDir = currentFile.getParentDirectory().getChildFile ("examples");
if (exampleDir.exists())

View file

@ -51,7 +51,7 @@ JUCEDemos::DemoCategory& JUCEDemos::getCategory (const String& name)
void JUCEDemos::registerDemo (std::function<Component*()> constructorCallback, const String& filePath, const String& category, bool isHeavyweight)
{
auto f = findExamplesDirectoryFromExecutable (File::getSpecialLocation (File::SpecialLocationType::currentExecutableFile));
auto f = findExamplesDirectoryFromExecutable (File::getSpecialLocation (File::SpecialLocationType::currentApplicationFile));
#if ! (JUCE_ANDROID || JUCE_IOS)
if (f == File())