Re: [AD] 5.0.0 final release plan |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2 Jan 2011, at 16:07 , Elias Pschernig wrote:
> I'd say either an #ifdef or simply check in two places. It's up to a
> game creator whichever of those they want - the #ifdef to make sure data
> is read only from one place, or checking two places so e.g. your artist
> could easily override data within the bundle.
>
> For the demo, the two places probably would be ALLEGRO_PROGRAM_PATH and
> ALLEGRO_SYSTEM_DATA_PATH. The first one should work whenever you run the
> built examples without installing. The second one should work for the
> installed app (whether as a bundle or not and whether in OSX or not).
I like this approach, because it shows how you can let users override the data used by the application. If we do this, I think we should actually also check ALLEGRO_USER_DATA_PATH, just for form.
Evert