mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
change folder/directory check logic
This commit is contained in:
parent
7b5a6e72e3
commit
70c1f3ad33
@ -279,11 +279,11 @@ public class InstallerVM : BackNavigatingVM, IBackNavigatingVM, ICpuStatusVM
|
||||
yield return ErrorResponse.Fail("Mod list source does not exist");
|
||||
|
||||
var downloadPath = Installer.DownloadLocation.TargetPath;
|
||||
if (downloadPath.Depth <= 1)
|
||||
if (!downloadPath.DirectoryExists())
|
||||
yield return ErrorResponse.Fail("Download path isn't set to a folder");
|
||||
|
||||
var installPath = Installer.Location.TargetPath;
|
||||
if (installPath.Depth <= 1)
|
||||
if (!installPath.DirectoryExists())
|
||||
yield return ErrorResponse.Fail("Install path isn't set to a folder");
|
||||
if (installPath.InFolder(KnownFolders.Windows))
|
||||
yield return ErrorResponse.Fail("Don't install modlists into your Windows folder");
|
||||
|
Loading…
Reference in New Issue
Block a user