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 > Error in libfat regarding subdirectories

#167815 - RickA - Sun Mar 29, 2009 12:36 pm

I'm having issues with the libfatdir example. I think I'm using it correctly in which case it's buggy.

It works on the root folder, but if you change it to list the contents of a subfolder it will think all the items in that folder are directories and not files.

#167819 - nanou - Sun Mar 29, 2009 9:40 pm

Does this help? http://forum.gbadev.org/viewtopic.php?t=16272
_________________
- nanou

#167863 - RickA - Wed Apr 01, 2009 8:02 am

Thanks, that did the trick!

#167872 - Dwedit - Wed Apr 01, 2009 4:24 pm

Did they ever fix the bug in devkitpro where the size of the stat struct is incorrect, causing memory corruption?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."