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.

DS development > libfat 07-01-28 problem

#117113 - Diddl - Thu Feb 01, 2007 11:36 am

yesterday I did a update to newest toolkit. after that I tried to compile this fatlib and got an error in this RTC functions (read date/time). the struct doesn't include member 'time'.

after replacing this code with return 0 it runs fine. current toolkit seems to have a missing or older RTC support??

####

@Chishm

thanks for releasing this new libfat!!

now I have implemented this missing io-driver (for R4, G6, Simply, EZ, MPSD ...) in your code and it is running fine. is there a chance you insert this into your standard libfat?

#117126 - chishm - Thu Feb 01, 2007 3:35 pm

The RTC time should be in the latest libnds. Wintermute did that for C99 support. I have frozen the IO interface as of 2006-12-25 (release day of DLDI). One reason for DLDI is so that I don't have to keep updating libfat with the newest drivers, and no one else needs to update their code to the latest version to support a new device.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com

#117128 - Diddl - Thu Feb 01, 2007 4:10 pm

DLDI is a very good idea to support new devices. but I think it would be comfortable to have most of the existing io-intefaces within the code. it's only a few kb more code ...

I would do the job for integrating new io_driver into current libfat release.

###

another idea:

a DLDI patcher for each card would be nice. for example if you have a R4 card, you only have to copy DLDI able homebrew to the card. after this you start the patcher application (dldi_r4.nds) and it would search for unpatched DLDI software and patch it for R4.