PDA

View Full Version : EFS Lib v1.1 Released!



wraggster
May 15th, 2007, 02:51
News/reease from Noda (http://forum.gbadev.org/viewtopic.php?t=13195):

Hi, I've made the FS idea I presented in another thread. Basically, it's an appended file system like GBFS, but it has many more features and less limitations:

* use NitroFS via ndstool
* works on slot-1 & 2, via DLDI patch
* autodetection of the NDS file in the card, using unique ID generated by the EFS patcher
* autosaving of the NDS file path in the card inside the NDS file. If the file has moved, then it's searched again
* read/write file support (for writing, space must be already allocated)
* multiple files can be opened at the same time
* directory listing
* can use real FAT instead of EFS with a simple define (useful for debugging, when you need to change files without changing the code)

It works on emulator by using the fcsr method by GPF and including the .nds (or the .ds.gba, it depends of the emu) itself in the FAT image.

History:

12/05/2007 - v1.0:

* Original release

13/05/2007 - v1.1:

* cleaned up code a bit
* corrected problems with nds files with loader
* corrected problems with nds files made with standard libnds makefile
* removed header struct
* optimised variables, now use 505 bytes less in RAM
* added EFS_Flush() function, to ensure data is written
* included ASM code for reserved space in efs_lib.c

Warning:

After a series of writes, make sure you call EFS_Flush(), to ensure data is written. This is due to a libfat limitation (caused by its the cache system, and the way EFS lib use libfat).

Download and Give Feedback Via Comments