mirror of https://github.com/tuyoogame/YooAsset
Compare commits
No commits in common. "4d2df5b7058a760de1b18d1c32bbbf5763f8e136" and "79467bbf13750b6dc748e0f38f55896d7e256acf" have entirely different histories.
4d2df5b705
...
79467bbf13
|
@ -83,6 +83,6 @@ namespace YooAsset
|
||||||
/// 文件系统初始化参数列表
|
/// 文件系统初始化参数列表
|
||||||
/// 注意:列表最后一个元素作为主文件系统!
|
/// 注意:列表最后一个元素作为主文件系统!
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly List<FileSystemParameters> FileSystemParameterList = new List<FileSystemParameters>();
|
public List<FileSystemParameters> FileSystemParameterList;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,6 +3,9 @@ using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
using UnityEngine.U2D;
|
||||||
|
using UnityEngine.TestTools;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
|
@ -228,7 +231,6 @@ public class WebFileStreamDecryption : IWebDecryptionServices
|
||||||
{
|
{
|
||||||
public WebDecryptResult LoadAssetBundle(WebDecryptFileInfo fileInfo)
|
public WebDecryptResult LoadAssetBundle(WebDecryptFileInfo fileInfo)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
byte[] copyData = new byte[fileInfo.FileData.Length];
|
byte[] copyData = new byte[fileInfo.FileData.Length];
|
||||||
Buffer.BlockCopy(fileInfo.FileData, 0, copyData, 0, fileInfo.FileData.Length);
|
Buffer.BlockCopy(fileInfo.FileData, 0, copyData, 0, fileInfo.FileData.Length);
|
||||||
|
|
||||||
|
@ -240,15 +242,5 @@ public class WebFileStreamDecryption : IWebDecryptionServices
|
||||||
WebDecryptResult decryptResult = new WebDecryptResult();
|
WebDecryptResult decryptResult = new WebDecryptResult();
|
||||||
decryptResult.Result = AssetBundle.LoadFromMemory(copyData);
|
decryptResult.Result = AssetBundle.LoadFromMemory(copyData);
|
||||||
return decryptResult;
|
return decryptResult;
|
||||||
*/
|
|
||||||
|
|
||||||
for (int i = 0; i < fileInfo.FileData.Length; i++)
|
|
||||||
{
|
|
||||||
fileInfo.FileData[i] ^= BundleStream.KEY;
|
|
||||||
}
|
|
||||||
|
|
||||||
WebDecryptResult decryptResult = new WebDecryptResult();
|
|
||||||
decryptResult.Result = AssetBundle.LoadFromMemory(fileInfo.FileData);
|
|
||||||
return decryptResult;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue