修复问题
This commit is contained in:
何冠峰
2025-09-10 21:00:51 +08:00
parent ed86edd2b0
commit 5d51bfe751
2 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ namespace YooAsset
/// </summary>
internal class DefaultEditorFileSystem : IFileSystem
{
protected readonly HashSet<string> _records = new HashSet<string>();
protected readonly Dictionary<string, string> _records = new Dictionary<string, string>(10000);
protected string _packageRoot;
/// <summary>
@@ -149,7 +149,7 @@ namespace YooAsset
{
if (VirtualDownloadMode)
{
return _records.Contains(bundle.BundleGUID);
return _records.ContainsKey(bundle.BundleGUID);
}
else
{
@@ -198,10 +198,10 @@ namespace YooAsset
}
#region
public void RecordDownloadFile(string bundleName)
public void RecordDownloadFile(PackageBundle bundle)
{
if (_records.Contains(bundleName) == false)
_records.Add(bundleName);
if (_records.ContainsKey(bundle.BundleGUID) == false)
_records.Add(bundle.BundleGUID, bundle.BundleName);
}
public string GetEditorPackageVersionFilePath()
{

View File

@@ -92,7 +92,7 @@ namespace YooAsset
if (_unityDownloadFileOp.Status == EOperationStatus.Succeed)
{
_fileSystem.RecordDownloadFile(Bundle.BundleName);
_fileSystem.RecordDownloadFile(Bundle);
_steps = ESteps.Done;
Status = EOperationStatus.Succeed;
}