Open Commenter25 opened 3 months ago
I'm not keen on checking for hardcoded paths, but I might be able to read the paths from the registry.
Understandable to not wanna hardcode the paths, but considering those directories are where the vast majority of installs will be, I think it's justified for improving the user experience. Checking the registry wouldn't account for all cases either. In my case, I'm running the program in a separate Wine setup from the Proton setup in Steam (which is significantly easier than rigging up running in the Proton setup), so the registry wouldn't have anything related to the game.
I'm not sure if there's any attempt to auto-detect the game directory already. If not, simply checking for the usual
C:\Program Files (x86)\Steam\steamapps\common\Watch_Dogs
andC:\Program Files (x86)\Ubisoft\Ubisoft Game Launcher\games\Watch_Dogs
would be excellent.Additionally, it'd be good to check
Z:\home\*\.steam\root\steamapps\common\Watch_Dogs
as well, for people using Wine/Proton. If there's no way to check every home folder, at the very least checkingdeck
automatically would be good for the convenience of Steam Deck users. Especially since Wine's file picker doesn't show hidden folders, so you have to manually enter the path above.