From a369efa4294d2de96b1749b55f2ff14e9f17e4ce Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 12 Apr 2024 11:25:12 +0800 Subject: [PATCH] fix #276 --- Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs | 1 + .../Runtime/ResourcePackage/Operation/InitializationOperation.cs | 1 + .../ResourcePackage/Operation/UpdatePackageManifestOperation.cs | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs b/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs index a970b9e..fc5f5eb 100644 --- a/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs +++ b/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs @@ -181,6 +181,7 @@ namespace YooAsset /// public void SaveSandboxPackageVersionFile(string version) { + YooLogger.Log($"Save package version : {version}"); string filePath = GetSandboxPackageVersionFilePath(); FileUtility.WriteAllText(filePath, version); } diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs index f7a7fa1..e67993c 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs @@ -332,6 +332,7 @@ namespace YooAsset { PackageVersion = _loadBuildinManifestOp.Manifest.PackageVersion; _impl.ActiveManifest = _loadBuildinManifestOp.Manifest; + _impl.FlushManifestVersionFile(); //注意:解压内置清单并加载成功后保存该清单版本。 _steps = ESteps.PackageCaching; } else diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs index 1db5774..0019b21 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs @@ -63,7 +63,6 @@ namespace YooAsset TryLoadCacheManifest, DownloadManifest, LoadCacheManifest, - CheckDeserializeManifest, Done, }