filesystem: Added SDL_GetCurrentDirectory().

Fixes #11531.
This commit is contained in:
Ryan C. Gordon
2024-11-27 19:41:37 -05:00
parent 16113374ff
commit f852038384
10 changed files with 101 additions and 2 deletions

View File

@@ -495,10 +495,13 @@ const char *SDL_GetUserFolder(SDL_Folder folder)
char *SDL_GetPrefPath(const char *org, const char *app)
{
char *path = SDL_SYS_GetPrefPath(org, app);
return path;
return SDL_SYS_GetPrefPath(org, app);
}
char *SDL_GetCurrentDirectory(void)
{
return SDL_SYS_GetCurrentDirectory();
}
void SDL_InitFilesystem(void)
{