filesystem: SDL_GetPrefPath() now follows the SDL_GetStringRule.

Reference Issue #10229.
This commit is contained in:
Ryan C. Gordon 2024-07-15 20:21:22 -04:00
parent 2321726ff1
commit 52bf7ff42d
20 changed files with 35 additions and 26 deletions

View file

@ -61,7 +61,7 @@ static int SDLCALL enum_callback(void *userdata, const char *origdir, const char
int main(int argc, char *argv[])
{
SDLTest_CommonState *state;
char *pref_path;
const char *pref_path;
const char *base_path;
/* Initialize test framework */
@ -97,7 +97,6 @@ int main(int argc, char *argv[])
SDL_GetError());
} else {
SDL_Log("pref path: '%s'\n", pref_path);
SDL_free(pref_path);
}
pref_path = SDL_GetPrefPath(NULL, "test_filesystem");
@ -106,7 +105,6 @@ int main(int argc, char *argv[])
SDL_GetError());
} else {
SDL_Log("pref path: '%s'\n", pref_path);
SDL_free(pref_path);
}
if (base_path) {