Skip to content

Conversation

@reiichi001
Copy link
Contributor

  • Tries to handle checking UserPath= override now. This is cursed because it doesn't technically require quotes in the path if it has spaces. I hope we never have to handle multiple args here.
  • Searches specifically for the game config path otherwise, as FirstOrDefault was defaulting to the first path it could find in the directory if there wasn't a match by length.

I've intentionally left in some comments and hopefully impossible code path in the try/catch. This is so it's easier to test if you change the default search path without using the UserPath override. It can be removed if that's a merge blocker.

- Tries to handle checking UserPath= override now. This is cursed because it doesn't technically require quotes in the path if it has spaces. I hope we never have to handle multiple args here.
- Searches specifically for the game config path otherwise, as FirstOrDefault was defaulting to the first path it could find in the directory if there wasn't a match by length.

I've intentionally left in some comments and hopefully impossible code path in the try/catch. This is so it's easier to test if you change the default search path without using the UserPath override. It can be removed if that's a merge blocker.
@goaaats goaaats merged commit 4d73261 into goatcorp:master Dec 4, 2025
2 checks passed
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