Update samples

pull/62/head
hevinci 2022-12-03 18:49:05 +08:00
parent 19cb239746
commit a2b51a8044
2 changed files with 6 additions and 6 deletions

View File

@ -105,12 +105,12 @@ namespace YooAsset.Editor
newList.Clear(); newList.Clear();
// 加载补丁清单1 // 加载补丁清单1
string jsonData1 = FileUtility.ReadFile(_patchManifestPath1); byte[] bytesData1 = FileUtility.ReadAllBytes(_patchManifestPath1);
PatchManifest patchManifest1 = PatchManifest.Deserialize(jsonData1); PatchManifest patchManifest1 = PatchManifest.DeserializeFromBinary(bytesData1);
// 加载补丁清单1 // 加载补丁清单1
string jsonData2 = FileUtility.ReadFile(_patchManifestPath2); byte[] bytesData2 = FileUtility.ReadAllBytes(_patchManifestPath2);
PatchManifest patchManifest2 = PatchManifest.Deserialize(jsonData2); PatchManifest patchManifest2 = PatchManifest.DeserializeFromBinary(bytesData2);
// 拷贝文件列表 // 拷贝文件列表
foreach (var patchBundle2 in patchManifest2.BundleList) foreach (var patchBundle2 in patchManifest2.BundleList)

View File

@ -51,8 +51,8 @@ namespace YooAsset.Editor
string outputDirectory = Path.GetDirectoryName(patchManifestFilePath); string outputDirectory = Path.GetDirectoryName(patchManifestFilePath);
// 加载补丁清单 // 加载补丁清单
string jsonData = FileUtility.ReadFile(patchManifestFilePath); byte[] bytesData = FileUtility.ReadAllBytes(patchManifestFilePath);
PatchManifest patchManifest = PatchManifest.Deserialize(jsonData); PatchManifest patchManifest = PatchManifest.DeserializeFromBinary(bytesData);
// 拷贝核心文件 // 拷贝核心文件
{ {