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

chore: [rcore] Implement GetApplicationDirectory for FreeBSD #4318

Merged

Conversation

dostoievsky
Copy link
Contributor

@dostoievsky dostoievsky commented Sep 13, 2024

This aims to implements GetApplicationDirectory working throught sysctl.h when running raylib on FreeBSD OS.

Closes #4317

@dostoievsky dostoievsky changed the title chore: GetApplicationDirectory definition for FreeBSD chore: [rcore] Implement GetApplicationDirectory for FreeBSD Sep 13, 2024
@JupiterRider
Copy link
Contributor

Good job @dostoievsky!

It's basically the same tactic SDL2 uses with SDL_GetBasePath:
https://github.com/libsdl-org/SDL/blob/release-2.30.7/src/filesystem/unix/SDL_sysfilesystem.c#L135

@dostoievsky
Copy link
Contributor Author

I am not really familiar with SDL, and I knew of some sysctl.h utilies because of dwmstatus ricing. I took inspiration from this following link that went up when searching how acess path information on bsd:
https://fpcwiki.coderetro.net/Accessing_FreeBSD_System_Information

@raysan5 raysan5 merged commit d02fcc5 into raysan5:master Sep 15, 2024
@raysan5
Copy link
Owner

raysan5 commented Sep 15, 2024

@dostoievsky thanks for the improvement!

@dostoievsky dostoievsky deleted the chore/rcore-freebsd-getappdir branch September 15, 2024 13:49
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.

[rcore] Implement GetApplicationDirectory for FreeBSD
3 participants