From 18f4ca0b21bdbe1819ce79a22db6e5e9a9edcddb Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 03 四月 2024 22:14:44 +0800 Subject: [PATCH] 0312 忽略下载读取本地logicbytes.txt文件加载 dll --- Assets/Launch/ResourcesModel.cs | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Assets/Launch/ResourcesModel.cs b/Assets/Launch/ResourcesModel.cs index 90a273f..f5901a3 100644 --- a/Assets/Launch/ResourcesModel.cs +++ b/Assets/Launch/ResourcesModel.cs @@ -190,6 +190,13 @@ { versionUrlResult = _result.Replace("{}", "null"); versionInfo = JsonMapper.ToObject<VersionInfo>(versionUrlResult); + + if (VersionConfigEx.Get().assetAccess == VersionConfigEx.InstalledAsset.IngoreDownLoad) + { + assetVersions = localAssetVersions; + step = LoadDllStep.ReadBytes; + return; + } step = LoadDllStep.PrepareDownLoad; } else @@ -339,11 +346,6 @@ if (_ok) { UpdateAssetVersions(_result); - if (VersionConfigEx.Get().assetAccess == VersionConfigEx.InstalledAsset.IngoreDownLoad) - { - step = LoadDllStep.ReadBytes; - return; - } step = LoadDllStep.DownLoad; } else -- Gitblit v1.8.0