RE: [AD] Allegro 4.3 file location API |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
It'd be nice to have such a way to "know" where canonical
places are. But, as Peter, I think any redirection *has*
to be explicit, or only implicit after an explicit instruction
(eg, a add_search_path or whatever).
One should also be able to override these defaults, by using
something like:
set_path(FILE_LOCATION, const char *path);
For instance, my game saves save games in $(HOME)/.valkin2/saves
by default (IIRC) but has the ability to save in /var/lib/valkin2
(IIRC too, it's been a while since I looked at it).
Maybe it'd be going a bit too far, but it could be made
explicit and not change the load/save API, by using something
like the # syntax for files in PACKFILEs, eg:
load_bitmap("<system>#foo.tga");
Then, <system> would be replaced by whatever the current path
for this path type is.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________