Re: [AD] set_config_file jumping around on OS X bundles |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] set_config_file jumping around on OS X bundles
- From: Matthew Leverton <meffer@xxxxxxxxxx>
- Date: Sat, 27 Aug 2005 01:22:38 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HpqVC7xh+16tsI0FymfE2AfA+uoWj3J3owQRSGxH9ALEmmubMcpK0k3yCsIb4ONb+qB/3voBQhAPVNuww4OdMqBhCyUpHNvvj+m8tTxvN3a2alJOlhUeRvpMhsqr9IWfAwA+liQMzOkxOp/BjnkYehzvfo1/GdwNjnQKxwhIhC0=
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