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 > Any alternatives TO FATSORT?

#161604 - michaelventigan - Thu Aug 07, 2008 2:51 am

Any alternatives to fatsort? Pls. do help me

#161608 - JLsoft - Thu Aug 07, 2008 4:53 am

Since FATSORT doesn't work with FAT32 drives, you can use "FolderSort v1.1" by 'Damien Burke', but with a ton of files it can take a long time since it's actually creating/renaming files and directories...also, sometimes I've seen it take like 5 'sorts' before things were completely sorted. No idea what causes that.

#161610 - Dwedit - Thu Aug 07, 2008 5:31 am

I just allocated a meg of RAM, stored the filenames in there, then did a merge sort. You can sort a set of filenames without moving any strings around in memory, just use a table.
Reading the list of filenames off the disk takes longer than the sort.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#161767 - dantheman - Wed Aug 13, 2008 7:48 pm

If you want a DS-side FATSORT, look into MCTool v0.16. However, I do not know if it will work correctly on a FAT32 filesystem, and I've heard one case of it corrupting the card entirely, so be warned.

#161893 - Lick - Sun Aug 17, 2008 3:01 pm

I think you can put the data into a temp folder on your memory card and then put it back. In Windows, it'll be (FAT) sorted.
_________________
http://licklick.wordpress.com