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:
parent
7d451b984a
commit
1be7db03cd
2 changed files with 2 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue