0
0
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:
Archangel 2024-08-14 08:25:59 +00:00 committed by chomp
parent 9357555280
commit 471c191bbb

View File

@ -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);
}
}