Re: [AD] standard path updates

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


On January 6, 2011, Peter Hull wrote:
> On Thu, Jan 6, 2011 at 10:29 AM, Thomas Fjellstrom
> 
> <tfjellstrom@xxxxxxxxxx> wrote:
> >> I agree with Matthew that this should be the actual exe. It's a bit of
> >> a push to think of a reason but... supposing the game had more than
> >> one executable (e.g. client + local server) then they'd be in the same
> >> directory (whether bundled or not) and you could get the location from
> >> EXENAME_PATH.
> > 
> > Aren't bundles built in a standard way? Surely the executables live in
> > the same place inside the bundle?
> 
> Yes they are, but the bundle could be anywhere. The executable can use
> EXENAME_PATH to ask 'where am I?' and then manipulate the answer to
> find the 'partner' exe. As I said, it's not something that's going to
> happen often.

Couldn't they do that no matter which option is picked then? Only you won't 
have to trim off the end of the path, instead you'd just append the static 
"executable folder" name and the other exe's name.

> pete
> 
> ---------------------------------------------------------------------------
> --- Learn how Oracle Real Application Clusters (RAC) One Node allows
> customers to consolidate database storage, standardize their database
> environment, and, should the need arise, upgrade to a full multi-node
> Oracle RAC database without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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