mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Merge pull request #1433 from Unnoen/IPS4-verify-and-MEGA-fixes
Fix IPS4 verification and MEGA status percentage.
This commit is contained in:
commit
ce8f412744
@ -250,6 +250,12 @@ namespace Wabbajack.Lib.Downloaders
|
||||
return false;
|
||||
}
|
||||
|
||||
if (quickMode)
|
||||
{
|
||||
streamResult.Dispose();
|
||||
return true;
|
||||
}
|
||||
|
||||
await using (var os = await path.Create())
|
||||
await using (var ins = await streamResult.Content.ReadAsStreamAsync())
|
||||
{
|
||||
|
@ -175,7 +175,9 @@ namespace Wabbajack.Lib.Downloaders
|
||||
|
||||
var fileLink = new Uri(Url);
|
||||
Utils.Status($"Downloading MEGA file: {a.Name}");
|
||||
await MegaApiClient.DownloadFileAsync(fileLink, (string)destination, new Progress<double>(p => Utils.Status($"Downloading MEGA File: {a.Name}", Percent.FactoryPutInRange(p))));
|
||||
await MegaApiClient.DownloadFileAsync(fileLink, (string)destination, new Progress<double>(p =>
|
||||
Utils.Status($"Downloading MEGA File: {a.Name}", Percent.FactoryPutInRange(p / 100d))
|
||||
));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user