Homebrew [Question] FSDIR_Read

ely42

Member
OP
Newcomer
Joined
May 28, 2016
Messages
19
Trophies
0
XP
71
Country
France
Hello guys :) can one of you help me to understand how to sort entries read by the libctru FSDIR_Read function ?
 

RealityNinja

Well-Known Member
Member
Joined
Nov 4, 2015
Messages
1,716
Trophies
0
Location
Pokéland
XP
667
Country
France
Last edited by RealityNinja,
  • Like
Reactions: ely42

ely42

Member
OP
Newcomer
Joined
May 28, 2016
Messages
19
Trophies
0
XP
71
Country
France
  • Like
Reactions: RealityNinja

elhobbs

Well-Known Member
Member
Joined
Jul 28, 2008
Messages
1,044
Trophies
1
XP
3,029
Country
United States
Thanks :) I already read both, I will study the steveice10 code more deeply. Thanks for answering mate :)
That example is probably way more than you need as it spawns a thread to read the directory. The part that directly relates to your question is - use qsort (or your own sort algorithm) to sort the results.
 
  • Like
Reactions: ely42

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: I guess Ancientboi would be Peter +1