From 0531b6ef3a9351b0d2e4a39d232474a35c450a23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Wed, 12 Feb 2025 11:45:12 +0800 Subject: [PATCH] update extension sample --- .../Operation/WXFSLoadBundleOperation.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs b/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs index 05aa1b99..9d238f6f 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Runtime/ExtensionFileSystem/WechatFileSystem/Operation/WXFSLoadBundleOperation.cs @@ -49,6 +49,15 @@ internal class WXFSLoadBundleOperation : FSLoadBundleOperation if (CheckRequestResult()) { + if (_bundle.Encrypted && _fileSystem.DecryptionServices == null) + { + _steps = ESteps.Done; + Status = EOperationStatus.Failed; + Error = $"The {nameof(IDecryptionServices)} is null !"; + YooLogger.Error(Error); + return; + } + AssetBundle assetBundle; var downloadHanlder = _webRequest.downloadHandler as DownloadHandlerWXAssetBundle; if (_bundle.Encrypted)