Hammer open file dialog randomly defaults to executable folder
Describe the bug
Sometimes when going to open a file after first starting Hammer, instead of the file section dialog defaulting to the selected VMF directory or the last opened file location, it will default to <game install folder>/bin/win64/, where Hammer's executable is located. This happens seemingly at random, even if the last opened file location is still valid.
To Reproduce
- ?????
- Close and reopen Hammer
- Go to open a map
I understand this isn't very helpful. I have no idea how exactly to trigger the bug, but it seems to happen for me every few launches. In the past I had suspected that it was related to switching game configurations, but I haven't really done that at all ever since PEE2 moved branches, and the issue still occurs, so that seems unrelated.
If no one can figure it out, perhaps try adding some kind of check for if this happens that prints a debug message to the console, then later I can update the issue with whatever information it gives.
Issue Map
N/A
Expected Behavior
It should open to the last file location like it usually does
Operating System
Tested on Windows 10