Update samples
parent
19cb239746
commit
a2b51a8044
|
@ -105,12 +105,12 @@ namespace YooAsset.Editor
|
|||
newList.Clear();
|
||||
|
||||
// 加载补丁清单1
|
||||
string jsonData1 = FileUtility.ReadFile(_patchManifestPath1);
|
||||
PatchManifest patchManifest1 = PatchManifest.Deserialize(jsonData1);
|
||||
byte[] bytesData1 = FileUtility.ReadAllBytes(_patchManifestPath1);
|
||||
PatchManifest patchManifest1 = PatchManifest.DeserializeFromBinary(bytesData1);
|
||||
|
||||
// 加载补丁清单1
|
||||
string jsonData2 = FileUtility.ReadFile(_patchManifestPath2);
|
||||
PatchManifest patchManifest2 = PatchManifest.Deserialize(jsonData2);
|
||||
byte[] bytesData2 = FileUtility.ReadAllBytes(_patchManifestPath2);
|
||||
PatchManifest patchManifest2 = PatchManifest.DeserializeFromBinary(bytesData2);
|
||||
|
||||
// 拷贝文件列表
|
||||
foreach (var patchBundle2 in patchManifest2.BundleList)
|
||||
|
|
|
@ -51,8 +51,8 @@ namespace YooAsset.Editor
|
|||
string outputDirectory = Path.GetDirectoryName(patchManifestFilePath);
|
||||
|
||||
// 加载补丁清单
|
||||
string jsonData = FileUtility.ReadFile(patchManifestFilePath);
|
||||
PatchManifest patchManifest = PatchManifest.Deserialize(jsonData);
|
||||
byte[] bytesData = FileUtility.ReadAllBytes(patchManifestFilePath);
|
||||
PatchManifest patchManifest = PatchManifest.DeserializeFromBinary(bytesData);
|
||||
|
||||
// 拷贝核心文件
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue