mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-16 08:18:13 +00:00
filesystem: SDL_Glob*Directory()
functions now follow the SDL_GetStringRule.
Reference Issue #10229.
This commit is contained in:
@@ -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). */
|
||||
|
Reference in New Issue
Block a user