1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Use getSiblingFile in more places

This commit is contained in:
Tom Poole 2024-11-20 10:10:35 +00:00
parent 5d5fdaf008
commit 5737c42ccf
7 changed files with 17 additions and 17 deletions

View file

@ -50,7 +50,7 @@ void JUCEDemos::registerDemo (std::function<Component*()> constructorCallback, c
{
#if JUCE_MAC
auto f = File::getSpecialLocation (File::currentExecutableFile)
.getParentDirectory().getParentDirectory().getChildFile ("Resources");
.getParentDirectory().getSiblingFile ("Resources");
#else
auto f = findExamplesDirectoryFromExecutable (File::getSpecialLocation (File::currentApplicationFile));
#endif
@ -69,7 +69,7 @@ void JUCEDemos::registerDemo (std::function<Component*()> constructorCallback, c
File JUCEDemos::findExamplesDirectoryFromExecutable (File exec)
{
int numTries = 15;
auto exampleDir = exec.getParentDirectory().getChildFile ("examples");
auto exampleDir = exec.getSiblingFile ("examples");
if (exampleDir.exists())
return exampleDir;