update cache system

pull/455/head
何冠峰 2024-12-31 11:15:46 +08:00
parent 42c87519e1
commit 4370ed544f
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ namespace YooAsset
/// <summary>
/// 注意:原子操作对象
/// </summary>
public int Result = 0;
public volatile int Result = 0;
public CacheFileElement(string packageName, string bundleGUID, string fileRootPath, string dataFilePath, string infoFilePath)
{

View File

@ -72,7 +72,7 @@ namespace YooAsset
int result = verifyElement.Result;
if (result != 0)
{
_verifyingList.Remove(verifyElement);
_verifyingList.RemoveAt(i);
RecordVerifyFile(verifyElement);
}
}

View File

@ -10,7 +10,7 @@ namespace YooAsset
/// <summary>
/// 注意:原子操作对象
/// </summary>
public int Result = 0;
public volatile int Result = 0;
public TempFileElement(string filePath, string fileCRC, long fileSize)
{