SpecialFolder questions - Mobile and Desktop
Posted: Mon Sep 19, 2016 4:53 am
Hello. Intermittent user here, trying to get the hang of it again after a while.
I'm re-using parts of an earlier desktop app and hoping to deploy the new app to both desktop and mobile (iOS and Android). I have a bunch of external graphics and audio files in a Media folder from which my original standalone used to grab the files. Now I'm trying to build them into the package. I've been reading a bunch about the SpecialFolderPath but I can use a little more guidance.
My code now uses to find its images (and something very similar to find its audio). I also open and read some text files that are in the media folder that specify which files go where.
Everything works fine in the IDE, and in the xCode simulator. When I install the iOS standalone on my actual phone, however, none of the linked audio or graphics show up. The embedded graphics are there, and the logic that isn't dependent on the text files works.
I added media/* on the Copy Files tab of standalone settings. After building for iOS, when I "View Package Contents" on my development Mac I can see the media folder, the text files, images and audio subfolders, and their contents all where I'd expect.
I suspect I'm missing something simple, but I'll be darned if I can figure out what it is. Anyone have any suggestions?
Thanks! --Dirk
I'm re-using parts of an earlier desktop app and hoping to deploy the new app to both desktop and mobile (iOS and Android). I have a bunch of external graphics and audio files in a Media folder from which my original standalone used to grab the files. Now I'm trying to build them into the package. I've been reading a bunch about the SpecialFolderPath but I can use a little more guidance.
My code now uses
Code: Select all
specialFolderPath("resources") & "/media/images/" & SomeFileNameVariable
Everything works fine in the IDE, and in the xCode simulator. When I install the iOS standalone on my actual phone, however, none of the linked audio or graphics show up. The embedded graphics are there, and the logic that isn't dependent on the text files works.
I added media/* on the Copy Files tab of standalone settings. After building for iOS, when I "View Package Contents" on my development Mac I can see the media folder, the text files, images and audio subfolders, and their contents all where I'd expect.
I suspect I'm missing something simple, but I'll be darned if I can figure out what it is. Anyone have any suggestions?
Thanks! --Dirk