Re: [AD] 5.0.0 final release plan

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


When built into a .app it should just load "data/*" or whatever (can't remember
if the data is stored in a data/ directory). Slap those files into .app/Content/Resources
and it should find them.

--
Trent Gamblin

On 2010-12-31, at 10:29 AM, Peter Hull wrote:

> On Fri, Dec 31, 2010 at 5:08 PM, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
>> I just had a quick look (OSX 10.6, svn 5.0 branch, built out-of-tree
>> with cmake-generated makefiles) The first thing I tried was a5teroids
>> and double clicking on the .app failed (opened then immediately
>> closed). The console log said:
>> 31/12/2010 17:03:34     [0x0-0x3f03f].org.liballeg.A5teroids[2660]      Keyboard
>> driver installed.
>> 31/12/2010 17:03:34     [0x0-0x3f03f].org.liballeg.A5teroids[2660]      Error
>> loading resources.
> I traced through a bit, it was looking for a file at
> /Users/peterhull/Projects/allegro/5.0/build/demos/a5teroids/a5teroids.app/data/gfx/large_font.tga
> it should be
> /Users/peterhull/Projects/allegro/5.0/build/demos/a5teroids/a5teroids.app/Contents/Resources/data/gfx/large_font.tga
> I wonder if getResource in Game.cpp shouldn't be using
> al_get_standard_path(ALLEGRO_PROGRAM_PATH) but some other constant to
> find OS X resources in their standard locations?
> 
> Pete





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