Reversal of safety check added to AInstaller.LoadFromFile

Just does the check in the VM before calling it
This commit is contained in:
Justin Swanson 2019-11-24 18:03:33 -06:00
parent 833213e8f4
commit 9bb6e73fa5
2 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,6 @@ namespace Wabbajack.Lib
public static ModList LoadFromFile(string path)
{
if (!File.Exists(path)) return null;
using (var fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read))
using (var ar = new ZipArchive(fs, ZipArchiveMode.Read))
{

View File

@ -150,6 +150,7 @@ namespace Wabbajack
.Select(modListPath =>
{
if (modListPath == null) return default(ModListVM);
if (!File.Exists(modListPath)) return default(ModListVM);
var modList = AInstaller.LoadFromFile(modListPath);
if (modList == null) return default(ModListVM);
return new ModListVM(modList, modListPath);