From e9fa3ead044df418f97ced284f12ba85525430d4 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 29 May 2023 17:30:43 +0800 Subject: [PATCH] update asset system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复安卓平台下,小米8手机上有小概率加载原生文件失败的问题。 --- .../Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs | 2 +- .../YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs | 2 +- .../YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs index 4d6fd7d..bc9819b 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/AssetBundleFileLoader.cs @@ -110,7 +110,7 @@ namespace YooAsset // 3. 内置文件解压 if (_steps == ESteps.Unpack) { - int failedTryAgain = 1; + int failedTryAgain = Impl.DownloadFailedTryAgain; var bundleInfo = ManifestTools.GetUnpackInfo(MainBundleInfo.Bundle); _unpacker = DownloadSystem.BeginDownload(bundleInfo, failedTryAgain); _steps = ESteps.CheckUnpack; diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs index b7ee11a..6c8d5bf 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs @@ -91,7 +91,7 @@ namespace YooAsset // 3. 解压内置文件 if (_steps == ESteps.Unpack) { - int failedTryAgain = 1; + int failedTryAgain = Impl.DownloadFailedTryAgain; var bundleInfo = ManifestTools.GetUnpackInfo(MainBundleInfo.Bundle); _unpacker = DownloadSystem.BeginDownload(bundleInfo, failedTryAgain); _steps = ESteps.CheckUnpack; diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs index b5513d6..5d6356f 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleWebLoader.cs @@ -89,7 +89,7 @@ namespace YooAsset // 3. 从站点下载 if (_steps == ESteps.Website) { - int failedTryAgain = 1; + int failedTryAgain = Impl.DownloadFailedTryAgain; var bundleInfo = ManifestTools.GetUnpackInfo(MainBundleInfo.Bundle); _website = DownloadSystem.BeginDownload(bundleInfo, failedTryAgain); _steps = ESteps.CheckWebsite;