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

BF2 does not launch if documents folder has been moved #2

Closed
2 tasks done
cetteup opened this issue Jul 29, 2022 · 1 comment
Closed
2 tasks done

BF2 does not launch if documents folder has been moved #2

cetteup opened this issue Jul 29, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cetteup
Copy link
Owner

cetteup commented Jul 29, 2022

Battlefield 2 current fails to launch if the Documents folder has been moved from it's default location.

Since only the documents if moved and not the entire user home dir, the path construction [homeDir]\Documents does not work in these cases.

  • investigate whether different environment variable always points to currently configured documents folder
  • if not, investigate lookup via registry HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
@cetteup cetteup added the bug Something isn't working label Jul 29, 2022
@cetteup cetteup self-assigned this Jul 29, 2022
@cetteup
Copy link
Owner Author

cetteup commented Jul 29, 2022

No other environment variable available, but the windows package facilitates access to known folder ids, which always reference the current paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant