mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-24 00:06:10 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user