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

[rcore] Implement GetApplicationDirectory for FreeBSD #4317

Closed
4 tasks done
dostoievsky opened this issue Sep 13, 2024 · 0 comments · Fixed by #4318
Closed
4 tasks done

[rcore] Implement GetApplicationDirectory for FreeBSD #4317

dostoievsky opened this issue Sep 13, 2024 · 0 comments · Fixed by #4318

Comments

@dostoievsky
Copy link
Contributor

dostoievsky commented Sep 13, 2024

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • I checked the documentation on the wiki
  • My code has no errors or misuse of raylib

Issue description

For loading resourcers it is needed to use GetApplicationDirectory function to change into resources directorie. On FreeBSD, there is no implemententation compatible, which makes applications unable to load files on other folders.

Environment

Provide your Platform, Operating System, OpenGL version, GPU details where you experienced the issue.

  • FreeBSD
  • I think the other details are irrelevant for this issue.

Issue Screenshot

print

Code Example

    const char* prev_dir = GetWorkingDirectory();
    const char* app_dir  = GetApplicationDirectory();
    ChangeDirectory(app_dir);
        Image fooImg = LoadImage("resources/foo.png");
    ChangeDirectory(prev_dir);

@dostoievsky dostoievsky changed the title [rcore] GetApplicationDirectory support for FreeBSD [rcore] Implement GetApplicationDirectory for FreeBSD Sep 13, 2024
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 a pull request may close this issue.

1 participant