Re: [AD] standard path updates

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2011-01-05, at 4:28 PM, Peter Hull wrote:
> NSSearchPathForDirectoriesInDomains rather than getenv, but, if it
> works...
> See http://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Articles/StandardDirectories.html#//apple_ref/doc/uid/20001279-SW4

I updated the iphone port. The paths it reports are (all apps have scrambled paths like this):

PROGRAM_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/ex_get_path.app/
TEMP_PATH: /private/var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/tmp/
SYSTEM_DATA_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/ex_get_path.app/
SYSTEM_SETTINGS_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/Documents/
USER_DATA_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/ex_get_path.app/
USER_SETTINGS_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/Documents/
USER_HOME_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/
EXENAME_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/ex_get_path.app/ex_get_path

Documents is questionable but seems to be the best choice. My first choice was "Application Support" but
that path is not writable on iPhone.

--
Trent Gamblin





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/