mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 23:18:29 +00:00
filesystem: SDL_GetPrefPath() now follows the SDL_GetStringRule.
Reference Issue #10229.
This commit is contained in:
@@ -429,6 +429,15 @@ const char *SDL_GetUserFolder(SDL_Folder folder)
|
||||
}
|
||||
|
||||
|
||||
const char *SDL_GetPrefPath(const char *org, const char *app)
|
||||
{
|
||||
char *path = SDL_SYS_GetPrefPath(org, app);
|
||||
if (path) {
|
||||
SDL_FreeLater(path);
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
void SDL_InitFilesystem(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user