Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filesystem: Added SDL_GetCurrentWorkingPath(). #11546

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

icculus
Copy link
Collaborator

@icculus icculus commented Nov 28, 2024

Here's a shot at the cwd stuff.

I went with "CurrentWorkingPath" instead of CurrentWorkingDirectory because all the other APIs use that naming. But also, I sort of hate it for this function, so I'm totally flexible on this.

This works on Linux (and should work on most other things that do POSIX stuff). Windows is written but untested here so far. Let's see what the builders say.

Fixes #11531.

@slouken
Copy link
Collaborator

slouken commented Nov 28, 2024

It should be GetCurrentDirectory()

@icculus
Copy link
Collaborator Author

icculus commented Nov 28, 2024

Okay, API is renamed, issues are resolved and commits are squashed; this can merge once the builders verify it, if there are no objections!

@icculus icculus added this to the 3.2.0 milestone Nov 28, 2024
@icculus icculus merged commit f852038 into libsdl-org:main Nov 28, 2024
40 checks passed
@icculus icculus deleted the sdl3-cwd-api branch November 28, 2024 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request: Current Working Directory
2 participants