update file system

重构运行时核心代码
This commit is contained in:
何冠峰
2024-12-24 18:23:19 +08:00
parent 6d6fd3af2c
commit 6254d00bb5
67 changed files with 1811 additions and 204 deletions
@@ -84,7 +84,6 @@ namespace YooAsset
}
// 设置请求URL
bool importFile = false;
if (string.IsNullOrEmpty(param.ImportFilePath))
{
param.MainURL = _fileSystem.RemoteServices.GetRemoteMainURL(bundle.FileName);
@@ -95,7 +94,6 @@ namespace YooAsset
// 注意:把本地文件路径指定为远端下载地址
param.MainURL = DownloadSystemHelper.ConvertToWWWPath(param.ImportFilePath);
param.FallbackURL = param.MainURL;
importFile = true;
}
// 创建新的下载器
@@ -112,12 +110,6 @@ namespace YooAsset
newDownloader.Reference();
_downloaders.Add(bundle.BundleGUID, newDownloader);
}
// 注意:导入文件不要限制并发!导入文件涉及到异步转同步,限制并发会导致主线程卡死风险!
if (importFile)
{
OperationSystem.StartOperation(_fileSystem.PackageName, newDownloader);
}
return newDownloader;
}