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

[Feature request] Handle read-only directories #128

Open
beeradmoore opened this issue Mar 12, 2023 · 0 comments
Open

[Feature request] Handle read-only directories #128

beeradmoore opened this issue Mar 12, 2023 · 0 comments
Labels
feature request New feature or request

Comments

@beeradmoore
Copy link
Owner

Is your feature request related to a problem? Please describe.
DLSS Swapper attempts to write files into various places:

  • game folders
  • system temp
  • relative folders to the executable
  • system app data

(see full list here)

It is currently unclear what happens in each of these scenarios when attempting to write to a directory that is read-only.

Describe the solution you'd like
Log the error to the error log for future reference and display a useful message to the end user rather than a generic "oh no I failed to do a thing" error.

Additional context
This was unintentional discovered in #120 when DLSS Swapper would attempt to write to system32 but there are other scenarios where this could happen. EG. running portable DLSS Swapper in a folder that is read-only. Games may apply a read-only flag to specific sub directories to prevent tamepring.

@beeradmoore beeradmoore added the feature request New feature or request label Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
  翻译: