We could use steam's libraryfolders.vdf to detect the installation path of VRChat instead of prompting the users, so the process would be
- Find
libraryfolders.vdf
- I'm fairly sure it's always in
~/.steam/steam/steamapps/libraryfolders.vdf, but not totally sure
- Parse it, and find VRChat's SteamID of
438100
- I don't think we necessarily have to even properly parse it, we could just match for
"438100", then find "path" on the first line before that and then find the next pair of quotes after that, and we'd have the path to that library folder
- And append
steamapps/common/VRChat/VRChat.exe to said library path
One thing I'm uncertain about is, should we still keep the manual selection just in case?
And if so how should we do that?
Maybe we could just see if the current path is invalid and if it then try and get the path using this method?
We could use steam's
libraryfolders.vdfto detect the installation path of VRChat instead of prompting the users, so the process would belibraryfolders.vdf~/.steam/steam/steamapps/libraryfolders.vdf, but not totally sure438100"438100", then find"path"on the first line before that and then find the next pair of quotes after that, and we'd have the path to that library foldersteamapps/common/VRChat/VRChat.exeto said library pathOne thing I'm uncertain about is, should we still keep the manual selection just in case?
And if so how should we do that?
Maybe we could just see if the current path is invalid and if it then try and get the path using this method?