mirror of
https://github.com/EpicMorg/SteamPathsLib.git
synced 2024-12-28 15:35:29 +03:00
Update SteamPathsUtil.cs
* fix parser
This commit is contained in:
parent
3957f87103
commit
3aa8aec61e
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user