Re: [AD] file interface fopen

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


On Sat, Dec 18, 2010 at 4:29 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> That's fine by me.  I would call them:
>
>    ALLEGRO_FILE *al_create_file_handle(ALLEGRO_FILE_INTERFACE *vt,
>        void *userdata);
>    void *al_get_file_userdata(ALLEGRO_FILE *f);
>    void al_destroy_file_handle(ALLEGRO_FILE *f);
>
> The fi_fopen2 method is not required, is it?
>
It's required if you want third party addons to be able to use the
standard al_fopen function. Say you have:

al_load_bitmap("foo.archive#foo.bmp");

So with that, it would call al_fopen() and then you're back to the
same problem of needing the internals.

--
Matthew Leverton




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