mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Check for custom resources folder first in DemoUtilities.h createAssetInputStream() method on Mac
This commit is contained in:
parent
d53171f0e9
commit
eed9fdffb0
1 changed files with 6 additions and 0 deletions
|
|
@ -82,6 +82,12 @@ inline InputStream* createAssetInputStream (const char* resourcePath)
|
|||
#if JUCE_IOS
|
||||
auto assetsDir = File::getSpecialLocation (File::currentExecutableFile)
|
||||
.getParentDirectory().getChildFile ("Assets");
|
||||
#elif JUCE_MAC
|
||||
auto assetsDir = File::getSpecialLocation (File::currentExecutableFile)
|
||||
.getParentDirectory().getParentDirectory().getChildFile ("Resources").getChildFile ("Assets");
|
||||
|
||||
if (! assetsDir.exists())
|
||||
assetsDir = getExamplesDirectory().getChildFile ("Assets");
|
||||
#else
|
||||
auto assetsDir = getExamplesDirectory().getChildFile ("Assets");
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue