Skip to content

Commit a55c6ef

Browse files
update Steam libraries file parsing
1 parent 85f26fa commit a55c6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ValheimServerWizard/WizardHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static IEnumerable<string> FindSteamLibraryFolders()
6262
/// </summary>
6363
public static IEnumerable<string> ReadLibraryFolders(string sourceFile)
6464
{
65-
Regex lineRegex = new Regex("^\\s*\"[0-9]+\"\\s*\"(.+)\"$");
65+
Regex lineRegex = new Regex("^\\s*\"path\"\\s*\"(.+)\"$");
6666

6767
using (StreamReader reader = new StreamReader(new FileStream(sourceFile, FileMode.Open, FileAccess.Read), Encoding.UTF8))
6868
{

0 commit comments

Comments
 (0)