Skip to content

Auto detect VRChat install path #8

@DeltaNeverUsed

Description

@DeltaNeverUsed

We could use steam's libraryfolders.vdf to detect the installation path of VRChat instead of prompting the users, so the process would be

  1. Find libraryfolders.vdf
    • I'm fairly sure it's always in ~/.steam/steam/steamapps/libraryfolders.vdf, but not totally sure
  2. 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
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions