mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Move disk check below directory creation
This commit is contained in:
parent
cf29bae7a7
commit
14cb675e3e
@ -56,8 +56,6 @@ namespace Wabbajack.Lib
|
||||
await Metrics.Send(Metrics.BeginInstall, ModList.Name);
|
||||
Utils.Log("Configuring Processor");
|
||||
|
||||
if (new PhysicalDisk(OutputFolder.DriveInfo().Name).MediaType == PhysicalDisk.MediaTypes.HDD && ReduceHDDThreads) DesiredThreads.OnNext(1); else DesiredThreads.OnNext(DiskThreads);
|
||||
|
||||
FileExtractor2.FavorPerfOverRAM = FavorPerfOverRam;
|
||||
|
||||
if (GameFolder == null)
|
||||
@ -120,13 +118,13 @@ namespace Wabbajack.Lib
|
||||
}
|
||||
}
|
||||
|
||||
// Reduce to one thread if downloads on HDD, else use specified. Hashing on HDD has no benefit with more threads.
|
||||
if (new PhysicalDisk(DownloadFolder.DriveInfo().Name).MediaType == PhysicalDisk.MediaTypes.HDD && ReduceHDDThreads) DesiredThreads.OnNext(1); else DesiredThreads.OnNext(DiskThreads);
|
||||
|
||||
if (cancel.IsCancellationRequested) return false;
|
||||
UpdateTracker.NextStep("Optimizing ModList");
|
||||
await OptimizeModlist();
|
||||
|
||||
// Reduce to one thread if downloads on HDD, else use specified. Hashing on HDD has no benefit with more threads.
|
||||
if (new PhysicalDisk(DownloadFolder.DriveInfo().Name).MediaType == PhysicalDisk.MediaTypes.HDD && ReduceHDDThreads) DesiredThreads.OnNext(1); else DesiredThreads.OnNext(DiskThreads);
|
||||
|
||||
if (cancel.IsCancellationRequested) return false;
|
||||
UpdateTracker.NextStep("Hashing Archives");
|
||||
await HashArchives();
|
||||
|
Loading…
Reference in New Issue
Block a user