retro-esp32 / RetroESP32

Retro ESP32 is a turbo charged Odroid Go Launcher, Emulator and ROM Manager
Creative Commons Attribution Share Alike 4.0 International
600 stars 93 forks source link

Feature - Sort Files Alphabetically #63

Open obsidianspider opened 4 years ago

obsidianspider commented 4 years ago

As of Firmware 2.2 it appears that ROM files are being displayed in the order they were loaded on the SD card, not alphabetically. A workaround is to use a utility like SDSorter after games are all placed in the directory, but it would be nice if the system could just sort them alphabetically on its own.

32teeth commented 4 years ago

Thanks @obsidianspider

We are working on a 'patch' where if you have less than a certain amount of games it can be sorted alphabetically

After a set amount of files, qsort just fails misserably

If over a set amount games we use fseek to find the next location in the directory