filesystem: SDL_GetUserFolder() now follows the SDL_GetStringRule.

It also now caches at the higher level, so the platform-specific bits don't
change their interface much.

Reference Issue #10229.
This commit is contained in:
Ryan C. Gordon
2024-07-15 20:03:15 -04:00
parent d40b89dff6
commit 2321726ff1
19 changed files with 48 additions and 31 deletions

View File

@@ -52,7 +52,7 @@ int main(int argc, char *argv[]) {
const SDL_FRect save_file_rect = { 50, 290, 220, 140 };
const SDL_FRect open_folder_rect = { 370, 50, 220, 140 };
int i;
char *initial_path = NULL;
const char *initial_path = NULL;
const int nfilters = sizeof(filters) / sizeof(*filters);
/* Initialize test framework */
@@ -147,10 +147,6 @@ int main(int argc, char *argv[]) {
SDL_RenderPresent(r);
}
if (initial_path) {
SDL_free(initial_path);
}
SDLTest_CleanupTextDrawing();
SDL_DestroyRenderer(r);
SDL_DestroyWindow(w);