1
0
Fork 0
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:
ed 2018-04-23 16:44:58 +01:00
parent d53171f0e9
commit eed9fdffb0

View file

@ -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