Re: [AD] set_config_file jumping around on OS X bundles

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


On 8/24/05, Peter Hull <peter.hull90@xxxxxxxxxx> wrote:
> Please find attached a patch to move the 'magic chdir' to earlier in the
> startup process, so that the config file will be looked for in the resource
> directory (this is {BundleName}.app/Contents/Resources/{executable-name}) if
> is present. I also made more use of the file and path manipulation functions
> provided by Cocoa, which should make it more robust.
> 
...
> 
> If someone could check over this I'd be grateful.
> 

Worked for me, although I had to apply the system.m patch by hand. 

It fixes the problem of reading and writing to two different config
files, which was all I was really asking for. It'd be nice to see this
in RC2.

--
Matthew Leverton




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