handle null stream path

This commit is contained in:
MountainFlash 2021-11-17 23:38:27 +05:30
parent c1d7d4ee35
commit ae4aebd5ce
No known key found for this signature in database
GPG Key ID: 6BDA200334E04E1A

View File

@ -283,6 +283,7 @@ namespace FModel.ViewModels
private static List<string> GetSteamLibs()
{
var steamPath = GetSteamPath();
if (steamPath == null) return new List<string>();
var libraries = new List<string> { steamPath };
var listFile = Path.Combine(steamPath, @"steamapps\libraryfolders.vdf");