miércoles, 14 de mayo de 2008

Virtual File System para Wii/GC


VFSlib es una librería que he desarrollado para Wii/GC y que permite realizar tareas de E/S bajo una interfaz unificada. En otras palabras, para el usuario de VFSlib leer archivos de una tarjeta SD o leerlos de Internet no supone ninguna diferencia, ya que las funciones que usa son las mismas en ambos casos.

Las ventajas de acceder a dispositivos distintos usando una interfaz común son evidentes: Se simplifica la creación de aplicaciones ya que no hay que preocuparse de los detalles específos de cada dispositivo y, además, las aplicaciones adquieren automáticamente la capacidad de usar nuevos dispositivos cuando estos se añaden a VFSlib.

Para facilitar aún más las cosas las funciones de VFSlib son compatibles con las funciones stdio de manejo de streams de ANSI C. Sólo son específicas de VFSlib aquellas operaciones no definidas en stdio, como por ejemplo las relativas a directorios.

La versión 0.1a de VFSlib permite acceder al lector SD de Wii y a archivos disponibles en Internet mediante el protocolo HTTP.

Podeis descargar el código fuente de VFSlib y un ejemplo de uso aquí. También he escrito una documentación, que poco a poco iré completando.



VFSlib is a library I've developed for Wii/GC that encapsulates different I/O operations under a common interface. In other words, for the user of VFSlib reading files from an SD card or from Internet doesn't make any difference, because the functions used in both cases are exactly the same.

The advantages of accessing different devices using a common interface are obvious: The process of developing applications is simplified because there is no need to concern about the specific details of each device and, moreover, the applications adquire automatically the ability of using new devices when they are added to VFSlib.

To make things even easier, the functions of VFSlib are compatible with ANSI C stdio stream handling functions. The only ones specific to VFSlib are those that are not defined in stdio, for example directory related functions.

VFSlib release 0.1a allows accessing Wii's SD card reader and all files available in Internet via the HTTP protocol.

You can download source code and an example of usage here. I've also written a documentation that will be gradually completed.

7 comentarios:

Anónimo dijo...

this is a great project and ambitious idea
but what about the libfat port in libogc ?

Frontier dijo...

A few minutes after I made public VFSlib marcan told me about libfat port in libogc and devoptab... If only I've known three weeks ago...

Now I'm studiying the possibility of porting my work to devoptab system, mainly the http functions, because libfat already provides access to the SD reader.

So, if everything goes OK with devoptab I'll discontinue VFSlib.

Sinoriel dijo...

Me permito la libertad de enalzarte la noticia querido amigo

GizmoTheGreen dijo...

will you update the pngu to use the new libfat in libogc r15?

would help a great bunch :)

Frontier dijo...

Yes, today I've updated it to use libfat. I want to add some extra features, so I haven't published it yet. Maybe in three or four days it will be ready.

Thanks for asking :)

GizmoTheGreen dijo...

hehe, nice!

may i request possibility to encode the current framebuffer into a png?

that taking screenshots of your games or applications would be easier

grrlib has a function for it, but it has a proprietary format and you have to use a convertor on pc to view it (converts to png)

Frontier dijo...

Have you read my mind? ;)

Noticias anteriores