filesystem: SDL_EnumerateDirectory() gives dirs with path seperators appended.

Fixes #11065.
Fixes #11427.
This commit is contained in:
Ryan C. Gordon
2025-01-15 17:03:01 -05:00
parent e98ee9bb04
commit 87e1b0eb89
5 changed files with 54 additions and 29 deletions

View File

@@ -313,6 +313,9 @@ typedef enum SDL_EnumerationResult
* terminate the enumeration early, and dictate the return value of the
* enumeration function itself.
*
* `dirname` is guaranteed to end with a path separator ('\\' on
* Windows, '/' on most other platforms).
*
* \param userdata an app-controlled pointer that is passed to the callback.
* \param dirname the directory that is being enumerated.
* \param fname the next entry in the enumeration.