Skip to content

Commit

Permalink
Update Folders.cs (vrcx-team#1081)
Browse files Browse the repository at this point in the history
Fix resolution of SteamLibrary path in libraryfolders.vdf
  • Loading branch information
Donad678 authored and Natsumi-sama committed Jan 13, 2025
1 parent d09549d commit ba99fa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dotnet/AppApi/Electron/Folders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ static AppApiElectron()
{
if (!File.Exists(libraryFoldersVdfPath))
return null;


string? libraryPath = null;

Check warning on line 53 in Dotnet/AppApi/Electron/Folders.cs

View workflow job for this annotation

GitHub Actions / build_dotnet_windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
foreach (var line in File.ReadLines(libraryFoldersVdfPath))
{
string? libraryPath = null;
{
// Assumes line will be \t\t"path"\t\t"pathToLibrary"
if (line.Contains("\"path\""))
{
Expand Down Expand Up @@ -228,4 +228,4 @@ public override async Task<string> OpenFileSelectorDialog(string defaultPath = "
return string.Empty;
}
}
}
}

0 comments on commit ba99fa1

Please sign in to comment.