From dfd695618c9a449dcb6cb0b61e206e78cc936265 Mon Sep 17 00:00:00 2001 From: Donad_VR Date: Mon, 13 Jan 2025 16:23:47 +0100 Subject: [PATCH] Update Folders.cs (#1081) Fix resolution of SteamLibrary path in libraryfolders.vdf --- Dotnet/AppApi/Electron/Folders.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dotnet/AppApi/Electron/Folders.cs b/Dotnet/AppApi/Electron/Folders.cs index b080cc7b..4a1ba3f3 100644 --- a/Dotnet/AppApi/Electron/Folders.cs +++ b/Dotnet/AppApi/Electron/Folders.cs @@ -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; } } -} \ No newline at end of file +}