Page 1 of 1

devkitARM r23b stat function fails - devkitARM r22 succeeded

Posted: Wed Aug 13, 2008 7:47 am
by icosahedron
A while ago I was able to set up reading files from an emulator image using the instructions found here: http://thoughtsfrommylife.com/article-7 ... _on_the_DS when using devkitARM r22. Using the sample code found here: http://chishm.drunkencoders.com/libfat/, I was able to see the files and load them.

Recently I updated to devkitARM r23b. Using the same libraries (devkitPro didn't update libfat), I now receive an error from stat for the stat.st_size member. Oddly enough, the size returned by every call is 'FSCR' in hex.

Looking at the differences, as mentioned before, libfat is identical. The compiler has changed, despite -v saying they're both 4.3.0. Also a number of header files and libraries have changed. Before I go digging through all these to determine the cause, I was wondering if anyone else had seen a problem like this.

Re: devkitARM r23b stat function fails - devkitARM r22 succeeded

Posted: Thu Aug 14, 2008 5:11 pm
by icosahedron
I've "solved" the problem by rebuilding libfat. I did have to make one small change to libfat.c, turning off the clause where it looks at __system_argv by adding a guard to the #ifndef for NDS as well. It now compiles and runs fine apparently.