Re: [AD] standard path updates

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


On 2011-01-06, at 3:52 PM, Matthew Leverton wrote:

> On Thu, Jan 6, 2011 at 4:15 PM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
>> PROGRAM_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/ex_get_path.app/
>> 
> That looks like the proper location, although we may end up removing
> PROGRAM_PATH from the list.
> 
> Do you see any value of PROGRAM_PATH for iPhone, if you have
> RESOURCE_PATH (bundled, read-only app data location)?

I can't think of a use for it now. If we need it later it's easier to add than take away.

>> USER_DATA_PATH: /var/mobile/Applications/AC749D23-8EB9-4271-91B8-BBDC490648F9/ex_get_path.app/
>> 
> Is this writable? It looks like you are using "[mainBundle
> resourcePath];", which seems more like RESOURCES_PATH (my patch will
> add that), which contains data that is bundled with the program.

Yes, USER_DATA_PATH and SYSTEM_DATA_PATH are currently what RESOURCES_PATH should be.
They are not writable.

> 
>> Documents is questionable but seems to be the best choice. My first choice was "Application Support" but
>> that path is not writable on iPhone.
>> 
> Both USER_DATA and USER_SETTINGS need to be writable.
> 
> So when I commit the new path stuff, I think I need to update your
> recent changes so that USER_DATA is called RESOURCES, and then alias
> the writable directories of USER_DATA and USER_SETTINGS and
> USER_DOCUMENTS (new) to the same thing (Documents). Make sense?
> 
> Note that SYSTEM_DATA/SYSTEM_SETTINGS will be removed on all platforms.

Yes, that makes sense.

--
Trent Gamblin





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