mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 20:50:44 -05:00
Remove bundle before re-acquiring (!155)
Currently, the system knows which bundles are incorrect and attempts to re-download the correct ones.. However, upon next re-launch those bundles will again be invalid probably due to it not actually writing to them forcing the system to keep re-downloading. This fixes it by removing the invalid bundle, then re-downloading the proper one. Reviewed-on: SPT/Modules#155 Co-authored-by: Archangel <jesse@archangel.wtf> Co-committed-by: Archangel <jesse@archangel.wtf>
This commit is contained in:
parent
9357555280
commit
471c191bbb
@ -97,6 +97,8 @@ namespace SPT.Custom.Patches
|
||||
// only download when connected externally
|
||||
if (await BundleManager.ShouldReaquire(bundleInfo))
|
||||
{
|
||||
VFS.DeleteFile(BundleManager.GetBundleFilePath(bundleInfo));
|
||||
|
||||
await BundleManager.DownloadBundle(bundleInfo);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user