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 1.0.7 broken on Supercard SD (SLOT-2)

#175383 - tempest - Sun Nov 07, 2010 11:51 am

Hello,

I have recently digged up an old project of mine and updated it to make it build with the latest version of the toolchain.

In doing so, I discovered that libfat seems to have become broken at some point on Supercard SD Slot-2 flashcard: in fact, fatInitDefault() always returns 0, even after patching the .nds with the right scsd.dldi patch.

There is also an old Moonshell-specific dldi patch for the Supercard SD and I tried that too: using it, fatInitDefault() returns 1, but then any read from any file on the SD yields nonsense.

libfat used to work perfectly on Supercard SD when the .nds file was dldi patched, at least until r20 from what I remember.

Is this a known issue of libfat?