mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-30 13:38:46 +00:00
update cache system
This commit is contained in:
@@ -16,7 +16,7 @@ namespace YooAsset
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 注意:原子操作对象
|
/// 注意:原子操作对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Result = 0;
|
public volatile int Result = 0;
|
||||||
|
|
||||||
public CacheFileElement(string packageName, string bundleGUID, string fileRootPath, string dataFilePath, string infoFilePath)
|
public CacheFileElement(string packageName, string bundleGUID, string fileRootPath, string dataFilePath, string infoFilePath)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ namespace YooAsset
|
|||||||
int result = verifyElement.Result;
|
int result = verifyElement.Result;
|
||||||
if (result != 0)
|
if (result != 0)
|
||||||
{
|
{
|
||||||
_verifyingList.Remove(verifyElement);
|
_verifyingList.RemoveAt(i);
|
||||||
RecordVerifyFile(verifyElement);
|
RecordVerifyFile(verifyElement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace YooAsset
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 注意:原子操作对象
|
/// 注意:原子操作对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Result = 0;
|
public volatile int Result = 0;
|
||||||
|
|
||||||
public TempFileElement(string filePath, string fileCRC, long fileSize)
|
public TempFileElement(string filePath, string fileCRC, long fileSize)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user