mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-03 02:17:39 +00:00
filesystem: SDL_GetPrefPath() now follows the SDL_GetStringRule.
Reference Issue #10229.
This commit is contained in:
parent
2321726ff1
commit
52bf7ff42d
20 changed files with 35 additions and 26 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue