public List <DirectoryInfo> GetModsDirs(bool force = true) { if (!force) { return(ModDirs); } // if (ModDirs != null && !force) return ModDirs; var ContentPathFile = BasePath.CombineFile("Temp", "SteamWorkshop", $"ContentPath_{SteamAppId}.txt"); // if (!ContentPathFile.Exists) throw new FileNotFoundException(); var dirs = new List <DirectoryInfo>(); var lines = File.ReadAllLines(ContentPathFile.FullName); foreach (var line in lines) { var modDir = new DirectoryInfo(line.Substring(1)); if (modDir.Exists) { dirs.Add(modDir); } } return(dirs); }