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.
devkitARM r23b stat function fails - devkitARM r22 succeeded
-
- Posts: 9
- Joined: Mon Mar 24, 2008 5:30 pm
-
- Posts: 9
- Joined: Mon Mar 24, 2008 5:30 pm
Re: devkitARM r23b stat function fails - devkitARM r22 succeeded
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.
Who is online
Users browsing this forum: No registered users and 1 guest