mirror of
https://github.com/EpicMorg/SteamPathsLib.git
synced 2024-12-29 07:55:31 +03:00
Update SteamPathsUtil.cs
* fix parser
This commit is contained in:
parent
3957f87103
commit
3aa8aec61e
@ -87,7 +87,14 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
dynamic configObject = VdfConvert.Deserialize(File.ReadAllText(configPath)).Value;
|
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)
|
var configLibraryPaths = ((VObject)valve.Steam)
|
||||||
.Children()
|
.Children()
|
||||||
.Where(item => item.Key.StartsWith("BaseInstallFolder"))
|
.Where(item => item.Key.StartsWith("BaseInstallFolder"))
|
||||||
|
Loading…
Reference in New Issue
Block a user