filesystem: SDL_Glob*Directory() functions now follow the SDL_GetStringRule.

Reference Issue #10229.
This commit is contained in:
Ryan C. Gordon 2024-07-15 20:36:33 -04:00
parent 52bf7ff42d
commit ed1f93cd11
7 changed files with 13 additions and 13 deletions

View file

@ -108,7 +108,7 @@ int main(int argc, char *argv[])
}
if (base_path) {
char **globlist;
const char * const *globlist;
if (SDL_EnumerateDirectory(base_path, enum_callback, NULL) < 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Base path enumeration failed!");
@ -122,7 +122,6 @@ int main(int argc, char *argv[])
for (i = 0; globlist[i]; i++) {
SDL_Log("GLOB[%d]: '%s'", i, globlist[i]);
}
SDL_free(globlist);
}
/* !!! FIXME: put this in a subroutine and make it test more thoroughly (and put it in testautomation). */