update runtime code

mlyDevMerge1.5.7
hevinci 2023-07-19 17:48:26 +08:00 committed by QiJing
parent a0c25c6197
commit e3fe9535cb
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,11 @@ namespace YooAsset
_steps = ESteps.CheckFile; _steps = ESteps.CheckFile;
FileLoadPath = MainBundleInfo.Bundle.CachedDataFilePath; FileLoadPath = MainBundleInfo.Bundle.CachedDataFilePath;
} }
else if (MainBundleInfo.LoadMode == BundleInfo.ELoadMode.LoadFromDelivery)
{
_steps = ESteps.CheckFile;
FileLoadPath = MainBundleInfo.DeliveryFilePath;
}
else else
{ {
throw new System.NotImplementedException(MainBundleInfo.LoadMode.ToString()); throw new System.NotImplementedException(MainBundleInfo.LoadMode.ToString());