mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Dont allow identical paths (#2362)
* add check for identical download and install folder paths * changelog update
This commit is contained in:
parent
00faee48fe
commit
c57219dc37
@ -3,6 +3,7 @@
|
|||||||
#### Version TBD
|
#### Version TBD
|
||||||
* Fixed issues related to high RAM usage
|
* Fixed issues related to high RAM usage
|
||||||
* The resumable downloads now reserve drive space to write to in advance instead of being managed in system RAM
|
* The resumable downloads now reserve drive space to write to in advance instead of being managed in system RAM
|
||||||
|
* Added check for identical download and install paths
|
||||||
|
|
||||||
#### Version - 3.1.0.0 - 5/7/2023
|
#### Version - 3.1.0.0 - 5/7/2023
|
||||||
* Fixed Readme opening twice
|
* Fixed Readme opening twice
|
||||||
|
@ -273,7 +273,10 @@ public class InstallerVM : BackNavigatingVM, IBackNavigatingVM, ICpuStatusVM
|
|||||||
yield return ErrorResponse.Fail("Install path isn't set to a folder");
|
yield return ErrorResponse.Fail("Install path isn't set to a folder");
|
||||||
if (installPath.InFolder(KnownFolders.Windows))
|
if (installPath.InFolder(KnownFolders.Windows))
|
||||||
yield return ErrorResponse.Fail("Don't install modlists into your Windows folder");
|
yield return ErrorResponse.Fail("Don't install modlists into your Windows folder");
|
||||||
|
if( installPath.ToString().Length > 0 && downloadPath.ToString().Length > 0 && installPath == downloadPath)
|
||||||
|
{
|
||||||
|
yield return ErrorResponse.Fail("Can't have identical install and download folders");
|
||||||
|
}
|
||||||
foreach (var game in GameRegistry.Games)
|
foreach (var game in GameRegistry.Games)
|
||||||
{
|
{
|
||||||
if (!_gameLocator.TryFindLocation(game.Key, out var location))
|
if (!_gameLocator.TryFindLocation(game.Key, out var location))
|
||||||
|
Loading…
Reference in New Issue
Block a user