#119315 - Diddl - Wed Feb 21, 2007 9:01 pm
below there are binaries and sources to demonstrate the problem with current libfat. the problem appears on R4, M3 lite and SuperCard lite in the same manner.
please patch binaries with your DLDI driver and test it yourself.
Not working sample: source, binary
Working sample: source, binary
the only difference in source are this lines:
My suspicion is, the error occurs if the last operations are
The interesting part is, the file is damaged! neither the NDS nor my PC can read this file. Windows says
Last edited by Diddl on Wed Feb 21, 2007 10:50 pm; edited 1 time in total
please patch binaries with your DLDI driver and test it yourself.
Not working sample: source, binary
Working sample: source, binary
the only difference in source are this lines:
Code: |
for(i = 0; i <= ANZ_BLOCKS; ++i) |
Code: |
for(i = ANZ_BLOCKS; i >= 0; --i) |
My suspicion is, the error occurs if the last operations are
- a fseek() behind the end of file
- a write access - fwrite() or fputs()
- a fclose()
The interesting part is, the file is damaged! neither the NDS nor my PC can read this file. Windows says
Code: |
cannot copy the source file. |
Last edited by Diddl on Wed Feb 21, 2007 10:50 pm; edited 1 time in total