gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > GBFS stdio-integration

#129792 - kusma - Sun May 27, 2007 11:34 am

Here's the results of last night's coding effort:
http://pimpmobile.kjip.no/kusma/gbfs_stdio_r1.tar.gz

I integrated GBFS (http://www.pineight.com/gba/#gbfs) by Damian Yerrick (also known on these forums as Tepples) into devkitPro, in the same way that libfat has been integrated - through the devoptab-interface. As GBFS is a bit limited, so is the integration:
- The file system is read-only; no creation or writing of files.
- The file system does not support sub-directories; all files must reside in the root of the file system.

As of now, there's one known bug; stat() and fstat() returns st_ino as 0 consequently - I simply didn't find any easy way of getting the file-index (as in n in gbfs_get_nth_obj()), but perhaps the data-pointer itself could do as inode.

#129793 - kusma - Sun May 27, 2007 11:37 am

Uhm, maybe this thread should be moved to the Coding section? It probably works on DS, but the examples are for GBA... Sorry about posting in the wrong forum.

#164404 - kusma - Thu Oct 30, 2008 5:04 pm

The server that hosted this is long gone, but the source code and header file are available in the Pimpmobile SVN.