glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Globulation for OSX binary (and build patch)


From: Ethan Tira-Thompson
Subject: Re: [glob2-devel] Globulation for OSX binary (and build patch)
Date: Sun, 6 Jan 2008 21:57:59 -0500

I've updated the binary at:
http://ethan.tira-thompson.com/stuff/Globulation-0.9.1.dmg

... the old one had an issue in that it wasn't finding the data directory within the bundle — apparently SDL has a "feature" where it moves the current working directory up a level to the directory containing the bundle (instead of leaving it at the root of the bundle itself), which means that the current reference using "./Contents/ Resources" doesn't work.
More info:
http://meandmarkpublishing.blogspot.com/2007/12/changing-sdls-working-directory-on-mac.html
http://www.idevgames.com/forum/showthread.php?t=12954

I didn't catch this before because it was loading out of the data in the build directory (cute) so it was working until I deleted the build stuff... Hopefully this one is actually using the right files!

A patch to fix this is here (and now used in the updated binary):
http://ethan.tira-thompson.com/stuff/Globulation-OSX-workingdir.patch
Which basically makes a few Mac-specific calls right at launch to get the bundle path and chdir back to it so everything else works as (I) expected.

-ethan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]