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

Add support for Saved Games directory? #77

Open
Kromey opened this issue Jan 10, 2023 · 0 comments
Open

Add support for Saved Games directory? #77

Kromey opened this issue Jan 10, 2023 · 0 comments

Comments

@Kromey
Copy link

Kromey commented Jan 10, 2023

Windows (since Vista) has the FOLDERID_SavedGames Known Folder (defaults to %USERPROFILE%\Saved Games). It would be nice if ProjectDirs could surface this in e.g. a saved_games_dir() method.

I don't believe Linux or MacOS has an equivalent; while you could fall back to data_dir() on those systems, that risks setting forth an opinion on a surprisingly controversial topic. It may be best instead to return an Option<&Path>, similar to runtime_dir(), which is None for MacOS and Linux so that developers can make their own decisions there. This could also return None on pre-Vista Windows systems as well.

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

No branches or pull requests

1 participant