Update Folders.cs (#1081)

Fix resolution of SteamLibrary path in libraryfolders.vdf
This commit is contained in:
Donad_VR
2025-01-13 16:23:47 +01:00
committed by GitHub
parent dacc6a8637
commit dfd695618c

View File

@@ -49,10 +49,10 @@ namespace VRCX
{
if (!File.Exists(libraryFoldersVdfPath))
return null;
string? libraryPath = null;
foreach (var line in File.ReadLines(libraryFoldersVdfPath))
{
string? libraryPath = null;
{
// Assumes line will be \t\t"path"\t\t"pathToLibrary"
if (line.Contains("\"path\""))
{
@@ -228,4 +228,4 @@ namespace VRCX
return string.Empty;
}
}
}
}