Re: [AD] search path?

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


Peter Wang wrote:

That was my next question.  I think we need to be able to register
handlers for different URI schemes.  At path without a URI scheme will
default to file://, which is implemented with stdio, but may be
overridden if you want to remote filesystem support (somehow).

What if the URI scheme is not found? For example

al_load_bitmap("C://Documents//mysha.png")

I think we can delegate the search path stuff to the backend that
implements each URI scheme. e.g. you can have "phys:baboon.tga"
search through multiple archives, you just have to use backend-specific
functions to set the search path.


Maybe we also could have something like:

al_set_uri_scheme("phys")

Which would make the default uri scheme "phys" instead of "file" (in the current thread). I can see cases where someone would want to use the physfs addon to interpret all paths and never use Allegro's stdio, and then this would be nice.

--
Elias Pschernig <elias@xxxxxxxxxx>




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