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

Support separate dir for screenshots #4710

Closed
wants to merge 1 commit into from

Conversation

saxofon
Copy link
Contributor

@saxofon saxofon commented Jan 19, 2025

Make it possible to steer where screenshots are stored.
Default to current behaviour (storing them at same path as the running process) to not break current users of raylib.

If one wants to change the location, we call SetScreenshotPath() before we call TakeScreenshot() like :

...
    SetScreenshotPath("/mnt/my-nifty-screenshots-directory");
    TakeScreenshot("my-nifty-screenshot.png");
...

SetScreenshotPath is "sticky" so next time we take screenshot it uses same path.

@raysan5
Copy link
Owner

raysan5 commented Jan 19, 2025

@saxofon I prefer not to add extra functions to maintain in this case, if you need that level of control use the LoadImageFromScreen() + ExportImage() on user side.

@raysan5 raysan5 closed this Jan 19, 2025
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.

2 participants