Skip to content

Commit

Permalink
PHYSFS_enumerateFiles() actually promises sorting order, and always has.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 15, 2014
1 parent 9df22f4 commit 628b88f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/physfs.h
Expand Up @@ -1097,8 +1097,9 @@ PHYSFS_DECL const char *PHYSFS_getRealDir(const char *filename);
* We've got [z.sav].
* We've got [w.sav].\endverbatim
*
* Feel free to sort the list however you like. We only promise there will
* be no duplicates, but not what order the final list will come back in.
* Feel free to sort the list however you like. However, the returned data
* will always contain no duplicates, and will be always sorted in alphabetic
* (rather: Unicode) order for you.
*
* Don't forget to call PHYSFS_freeList() with the return value from this
* function when you are done with it.
Expand Down

0 comments on commit 628b88f

Please sign in to comment.