Update CacheSystem

This commit is contained in:
hevinci
2022-08-06 16:40:40 +08:00
parent a1ad7acb3d
commit 314c5cd86a
8 changed files with 23 additions and 23 deletions
@@ -48,7 +48,7 @@ namespace YooAsset
foreach (var patchBundle in localPatchManifest.BundleList)
{
// 忽略缓存文件
if (CacheSystem.ContainsVerifyFile(patchBundle.FileHash))
if (CacheSystem.ContainsVerifyFile(patchBundle))
continue;
// 忽略APP资源
@@ -140,7 +140,7 @@ namespace YooAsset
if (info.Result)
{
VerifySuccessCount++;
CacheSystem.CacheVerifyFile(info.Bundle.FileHash, info.Bundle.FileName);
CacheSystem.CacheVerifyFile(info.Bundle);
}
else
{
@@ -173,7 +173,7 @@ namespace YooAsset
foreach (var patchBundle in localPatchManifest.BundleList)
{
// 忽略缓存文件
if (CacheSystem.ContainsVerifyFile(patchBundle.FileHash))
if (CacheSystem.ContainsVerifyFile(patchBundle))
continue;
// 忽略APP资源
@@ -239,7 +239,7 @@ namespace YooAsset
if (result)
{
VerifySuccessCount++;
CacheSystem.CacheVerifyFile(patchBundle.FileHash, patchBundle.FileName);
CacheSystem.CacheVerifyFile(patchBundle);
}
else
{