mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-25 18:20:15 +00:00
fix #311
This commit is contained in:
@@ -250,17 +250,17 @@ namespace YooAsset
|
|||||||
if (File.Exists(_tempFilePath))
|
if (File.Exists(_tempFilePath))
|
||||||
{
|
{
|
||||||
FileInfo fileInfo = new FileInfo(_tempFilePath);
|
FileInfo fileInfo = new FileInfo(_tempFilePath);
|
||||||
fileBeginLength = fileInfo.Length;
|
if (fileInfo.Length >= Bundle.FileSize)
|
||||||
_fileOriginLength = fileBeginLength;
|
{
|
||||||
DownloadedBytes = _fileOriginLength;
|
// 删除临时文件
|
||||||
}
|
|
||||||
|
|
||||||
// 检测下载起始位置
|
|
||||||
if (fileBeginLength >= Bundle.FileSize)
|
|
||||||
{
|
|
||||||
// 删除临时文件
|
|
||||||
if (File.Exists(_tempFilePath))
|
|
||||||
File.Delete(_tempFilePath);
|
File.Delete(_tempFilePath);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fileBeginLength = fileInfo.Length;
|
||||||
|
_fileOriginLength = fileBeginLength;
|
||||||
|
DownloadedBytes = _fileOriginLength;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 创建下载器
|
// 创建下载器
|
||||||
|
|||||||
Reference in New Issue
Block a user