From e8a4ddf3318f53f75b25ff6fadfa4879a9da70c6 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 19 Jul 2023 17:48:26 +0800 Subject: [PATCH] update runtime code --- .../Runtime/AssetSystem/Loader/RawBundleFileLoader.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs index a0f80b1..c5a8122 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Loader/RawBundleFileLoader.cs @@ -54,6 +54,11 @@ namespace YooAsset _steps = ESteps.CheckFile; FileLoadPath = MainBundleInfo.Bundle.CachedDataFilePath; } + else if (MainBundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromDelivery) + { + _steps = ESteps.CheckFile; + FileLoadPath = MainBundleInfo.DeliveryFilePath; + } else { throw new System.NotImplementedException(MainBundleInfo.LoadMode.ToString());