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

Mounting "*_downloads" directory for every gamedir downloaded resources #1704

Open
SNMetamorph opened this issue Jul 4, 2024 · 2 comments
Open

Comments

@SNMetamorph
Copy link
Member

GoldSrc works exactly like this, and it's truly better way to store custom content downloaded from servers, instead of storing it inside "downloaded" folder in game directory.

@SNMetamorph SNMetamorph changed the title Mounting _downloads directory for every gamedir downloaded resources Mounting "*_downloads" directory for every gamedir downloaded resources Jul 4, 2024
@a1batross
Copy link
Member

I don't like how the root directory becomes messy with all these optional directories. That's why the downloaded/ is inside game directory.

I had plans on supporting mounting _hd and _lv folders, but only because this is an existing convention, that modders and players rely on.

@a1batross
Copy link
Member

Also, I just realized it might not be possible to have a download directory outside of game directory because game directory is considered to be a write directory and all write operations happen relative to it.

And we can't have relative access because of FS_CheckNastyPath. It's possible to temporarily lift down this limitation with FS_AllowDirectPath but I would prefer to not rely on it, due to how easy it might become a security issue.

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

2 participants