mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Reversal of safety check added to AInstaller.LoadFromFile
Just does the check in the VM before calling it
This commit is contained in:
parent
833213e8f4
commit
9bb6e73fa5
@ -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))
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user