Revert "check if InstalledBundles dir exists"

This reverts commit c3027d2102.
This commit is contained in:
MountainFlash
2022-05-19 15:52:23 +05:30
parent c3027d2102
commit b88f288a11

View File

@@ -119,10 +119,11 @@ namespace FModel.ViewModels
break;
}
case FGame.FortniteGame:
var extraDirs = new List<DirectoryInfo>();
var bundlesDir = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\FortniteGame\\Saved\\PersistentDownloadDir\\InstalledBundles");
if (bundlesDir.Exists) extraDirs.Add(bundlesDir);
Provider = new DefaultFileProvider(new DirectoryInfo(gameDirectory), extraDirs, SearchOption.AllDirectories, true, versions);
Provider = new DefaultFileProvider(new DirectoryInfo(gameDirectory), new List<DirectoryInfo>
{
new(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\FortniteGame\\Saved\\PersistentDownloadDir\\InstalledBundles"),
},
SearchOption.AllDirectories, true, versions);
break;
case FGame.Unknown when UserSettings.Default.ManualGames.TryGetValue(gameDirectory, out var settings):
{