refactor : 代码重构

This commit is contained in:
何冠峰
2026-02-09 10:09:18 +08:00
parent d839146bd5
commit 811eb5d82b
283 changed files with 3488 additions and 2441 deletions

View File

@@ -37,11 +37,11 @@ namespace YooAsset
{
if (_options.Bundle.IsEncrypted == false)
{
if (SupportsFileIO(_options.FilePath) == false)
if (FileUtility.SupportsFileIO(_options.FilePath) == false)
{
_steps = ESteps.Done;
Status = EOperationStatus.Failed;
Error = $"FileIO not supported for builtin path : {_options.FilePath}";
Error = $"FileIO is not supported for builtin path: {_options.FilePath}";
return;
}
@@ -67,7 +67,7 @@ namespace YooAsset
{
_steps = ESteps.Done;
Status = EOperationStatus.Failed;
Error = $"{_options.CacheName} not support {decryptor.GetType().Name}";
Error = $"{_options.CacheName} does not support {decryptor.GetType().Name}";
return;
}
@@ -95,7 +95,7 @@ namespace YooAsset
{
_steps = ESteps.Done;
Status = EOperationStatus.Succeeded;
BundleResult = new RawBundleResult(_options.FilePath, _options.Bundle, _rawBundle);
BundleHandle = new RawBundleHandle(_options.FilePath, _options.Bundle, _rawBundle);
}
}
}