MCTool is a program to fix the errors and sort the entries of your media cards straight from the DS.
Changelog:
- Added ability to choose how to repair every single error.
- Added automatic repair mode.
- Added MC switch feature.
- Display detected flashcart.
- Wait for all keys to be released upon initialization.
- Patched double files count when verifying.
- Tested and added new SC Lite driver.
- Cleaned up code.
- Started development of a GBA version (which will not be released soon, so don't ask!

- Compiled with new DevKitPro r20.
- Other bugfixes I cannot remember

Make sure to read the README, as it has been updated with tons of info!
The program is released under the GPL. Please report any comments/bugs/appreciations

Disclaimer:
PLEASE NOTE THAT THIS PROGRAM MESSES WITH THE FILESYSTEM OF YOUR MEDIA CARD, WHICH MIGHT RESULT IN A DATA LOSS. THEREFORE, BEFORE USING IT, ALWAYS MAKE A BACKUP OF ANY IMPORTANT DATA.
Downloads:
- Binaries
- Source
The program uses a hacked version of Chishm's libfat to allow for raw I/O:
- Source
- NDS binaries
- GBA binaries (untested)