This PR adds rudimentary support for locating and installing VRMod across multiple drives when the directory contains multiple spaces.
Previously, this search would get to "C:\Program" and immediately try to match that. Now, if that fails, it will match "C:\Program Files", then "C:\Program Files (x86)" (most common install route) as well. Additionally, some quote stripping is performed afterward to ensure no artifacts from this method of retrieval are passed into the gmod_dir variable.
This patch isn't very significant for users who install to C, but for people with games across multiple drives (like me) this helps to more accurately locate the install automatically.
This PR adds rudimentary support for locating and installing VRMod across multiple drives when the directory contains multiple spaces.
Previously, this search would get to "C:\Program" and immediately try to match that. Now, if that fails, it will match "C:\Program Files", then "C:\Program Files (x86)" (most common install route) as well. Additionally, some quote stripping is performed afterward to ensure no artifacts from this method of retrieval are passed into the gmod_dir variable.
This patch isn't very significant for users who install to C, but for people with games across multiple drives (like me) this helps to more accurately locate the install automatically.