mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Update Folders.cs (#1081)
Fix resolution of SteamLibrary path in libraryfolders.vdf
This commit is contained in:
@@ -49,10 +49,10 @@ namespace VRCX
|
|||||||
{
|
{
|
||||||
if (!File.Exists(libraryFoldersVdfPath))
|
if (!File.Exists(libraryFoldersVdfPath))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
string? libraryPath = null;
|
||||||
foreach (var line in File.ReadLines(libraryFoldersVdfPath))
|
foreach (var line in File.ReadLines(libraryFoldersVdfPath))
|
||||||
{
|
{
|
||||||
string? libraryPath = null;
|
|
||||||
// Assumes line will be \t\t"path"\t\t"pathToLibrary"
|
// Assumes line will be \t\t"path"\t\t"pathToLibrary"
|
||||||
if (line.Contains("\"path\""))
|
if (line.Contains("\"path\""))
|
||||||
{
|
{
|
||||||
@@ -228,4 +228,4 @@ namespace VRCX
|
|||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user