[AD] [patch] new configuration variable: resource_path

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


I need a way to specify location of keyboard.dat, as I do not wish to store
it in the same directory as the executable. Currently, the only way to do
this is by setting the environment variable ALLEGRO. I think this must be
reserved for users wanting to specify location of their own allegro.cfg,
though.

The attached patch solves this issue by introducing a new configuration
variable [system]resource_path and modifying
src/file.c:find_allegro_resource() to make use of this unless resource file
is allegro.cfg (which obviously wouldn't work).

Does this seem reasonable? I know it's not a very flexible solution (for
example, you might want to specify different locations for keyboard
mappings and language translations).

--
Daniel Schlyder
http://bitblaze.com/

Attachment: resource_path.diff
Description: Binary data



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