mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
ngage: SDL_GetPrefPath allows a NULL org
parameter.
Reference Issue #13322.
This commit is contained in:
@@ -32,11 +32,11 @@ char *SDL_SYS_GetBasePath(void)
|
|||||||
|
|
||||||
char *SDL_SYS_GetPrefPath(const char *org, const char *app)
|
char *SDL_SYS_GetPrefPath(const char *org, const char *app)
|
||||||
{
|
{
|
||||||
char *pref_path;
|
char *pref_path = NULL;
|
||||||
if (SDL_asprintf(&pref_path, "C:/System/Apps/%s/%s/", org, app) < 0)
|
if (SDL_asprintf(&pref_path, "C:/System/Apps/%s/%s/", org ? org : "SDL_App", app) < 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
else
|
}
|
||||||
return pref_path;
|
return pref_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *SDL_SYS_GetUserFolder(SDL_Folder folder)
|
char *SDL_SYS_GetUserFolder(SDL_Folder folder)
|
||||||
|
Reference in New Issue
Block a user