Update SteamPathsUtil.cs

* fix parser
This commit is contained in:
AlexZ 2020-05-30 13:36:59 +03:00
parent 3957f87103
commit 3aa8aec61e

View File

@ -87,7 +87,14 @@
try {
dynamic configObject = VdfConvert.Deserialize(File.ReadAllText(configPath)).Value;
var valve = configObject.Software.Valve ?? configObject.Software.valve;
dynamic valve;
try {
valve = configObject.Software.Valve;
} catch {
valve = configObject.Software.valve;
}
var configLibraryPaths = ((VObject)valve.Steam)
.Children()
.Where(item => item.Key.StartsWith("BaseInstallFolder"))