From ef8706e3e72da6c6ce43071bff338282b156a410 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 23 Mar 2022 18:23:01 +0800 Subject: [PATCH] Update PatchSystem --- .../PatchSystem/Operations/InitializationOperation.cs | 6 +++--- .../PatchSystem/Operations/UpdateManifestOperation.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/YooAsset/Runtime/PatchSystem/Operations/InitializationOperation.cs b/Assets/YooAsset/Runtime/PatchSystem/Operations/InitializationOperation.cs index a796b40..ba51531 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/Operations/InitializationOperation.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/Operations/InitializationOperation.cs @@ -59,7 +59,7 @@ namespace YooAsset if (_steps == ESteps.LoadAppManifest) { - string filePath = PathHelper.MakeStreamingLoadPath(ResourceSettingData.Setting.PatchManifestFileName); + string filePath = PathHelper.MakeStreamingLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName); _downloadURL = PathHelper.ConvertToWWWPath(filePath); _downloader = new UnityWebDataRequester(); _downloader.SendRequest(_downloadURL); @@ -149,7 +149,7 @@ namespace YooAsset { // 加载APP内的补丁清单 YooLogger.Log($"Load application patch manifest."); - string filePath = PathHelper.MakeStreamingLoadPath(ResourceSettingData.Setting.PatchManifestFileName); + string filePath = PathHelper.MakeStreamingLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName); _downloadURL = PathHelper.ConvertToWWWPath(filePath); _downloader = new UnityWebDataRequester(); _downloader.SendRequest(_downloadURL); @@ -184,7 +184,7 @@ namespace YooAsset if (SandboxHelper.CheckSandboxPatchManifestFileExist()) { YooLogger.Log($"Load sandbox patch manifest."); - string filePath = PathHelper.MakePersistentLoadPath(ResourceSettingData.Setting.PatchManifestFileName); + string filePath = PathHelper.MakePersistentLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName); string jsonData = File.ReadAllText(filePath); _impl.LocalPatchManifest = PatchManifest.Deserialize(jsonData); } diff --git a/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs b/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs index f3e846d..f61c696 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/Operations/UpdateManifestOperation.cs @@ -95,7 +95,7 @@ namespace YooAsset if (_steps == ESteps.LoadWebManifestHash) { - string webURL = GetPatchManifestRequestURL(_updateResourceVersion, ResourceSettingData.Setting.PatchManifestHashFileName); + string webURL = GetPatchManifestRequestURL(_updateResourceVersion, YooAssetSettingsData.Setting.PatchManifestHashFileName); YooLogger.Log($"Beginning to request patch manifest hash : {webURL}"); _downloaderHash = new UnityWebDataRequester(); _downloaderHash.SendRequest(webURL, _timeout); @@ -137,7 +137,7 @@ namespace YooAsset if (_steps == ESteps.LoadWebManifest) { - string webURL = GetPatchManifestRequestURL(_updateResourceVersion, ResourceSettingData.Setting.PatchManifestFileName); + string webURL = GetPatchManifestRequestURL(_updateResourceVersion, YooAssetSettingsData.Setting.PatchManifestFileName); YooLogger.Log($"Beginning to request patch manifest : {webURL}"); _downloaderManifest = new UnityWebDataRequester(); _downloaderManifest.SendRequest(webURL, _timeout); @@ -206,7 +206,7 @@ namespace YooAsset // 注意:这里会覆盖掉沙盒内的补丁清单文件 YooLogger.Log("Save remote patch manifest file."); - string savePath = PathHelper.MakePersistentLoadPath(ResourceSettingData.Setting.PatchManifestFileName); + string savePath = PathHelper.MakePersistentLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName); PatchManifest.Serialize(savePath, _impl.LocalPatchManifest); }