update sdl Merge commit '4d48f9d23713d94b861da7b5d41baf2a41334994'

This commit is contained in:
2023-08-12 20:17:29 +02:00
215 changed files with 12672 additions and 17114 deletions

View File

@ -50,7 +50,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
return NULL;
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
/* TODO: see https://developer.android.com/reference/android/os/Environment#lfields
and https://stackoverflow.com/questions/39332085/get-path-to-pictures-directory */

View File

@ -130,7 +130,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
}
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
@autoreleasepool {
#if TARGET_OS_TV

View File

@ -37,7 +37,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
return NULL;
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;

View File

@ -83,7 +83,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
return retval;
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
const char *home = NULL;
char *retval;

View File

@ -97,7 +97,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
return retval;
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
const char *home = NULL;
char *retval;

View File

@ -60,7 +60,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
}
/* TODO */
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;

View File

@ -103,7 +103,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
}
/* TODO */
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;

View File

@ -70,7 +70,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
}
/* TODO */
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;

View File

@ -200,7 +200,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
}
/* TODO */
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;

View File

@ -517,7 +517,7 @@ static char *xdg_user_dir_lookup (const char *type)
return NULL;
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
const char *param = NULL;
char *retval;

View File

@ -84,7 +84,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
}
/* TODO */
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;

View File

@ -177,7 +177,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
return retval;
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
typedef HRESULT (WINAPI *pfnSHGetKnownFolderPath)(REFGUID /* REFKNOWNFOLDERID */, DWORD, HANDLE, PWSTR*);
HMODULE lib = LoadLibrary(L"Shell32.dll");
@ -346,7 +346,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
return NULL;
}
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;

View File

@ -233,7 +233,7 @@ SDL_GetPrefPath(const char *org, const char *app)
}
/* TODO */
char *SDL_GetPath(SDL_Folder folder)
char *SDL_GetUserFolder(SDL_Folder folder)
{
SDL_Unsupported();
return NULL;