mirror of https://github.com/tuyoogame/YooAsset
fix #224
parent
d8a8afba5e
commit
6e1978ec10
|
@ -44,10 +44,15 @@ namespace YooAsset
|
||||||
{
|
{
|
||||||
public static class EditorSimulateModeHelper
|
public static class EditorSimulateModeHelper
|
||||||
{
|
{
|
||||||
/// <summary>
|
public static string SimulateBuild(string buildPipelineName, string packageName)
|
||||||
/// 编辑器下模拟构建清单
|
{
|
||||||
/// </summary>
|
throw new System.Exception("Only support in unity editor !");
|
||||||
public static string SimulateBuild(string buildPipelineName, string packageName) { throw new System.Exception("Only support in unity editor !"); }
|
}
|
||||||
|
|
||||||
|
public static string SimulateBuild(EDefaultBuildPipeline buildPipeline, string packageName)
|
||||||
|
{
|
||||||
|
throw new System.Exception("Only support in unity editor !");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
|
@ -1,15 +1,16 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using YooAsset;
|
using YooAsset;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 文件偏移加密方式
|
/// 文件偏移加密方式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FileOffsetEncryption : IEncryptionServices
|
public class FileOffsetEncryption : IEncryptionServices
|
||||||
{
|
{
|
||||||
public EncryptResult Encrypt(EncryptFileInfo fileInfo)
|
public EncryptResult Encrypt(EncryptFileInfo fileInfo)
|
||||||
{
|
{
|
||||||
|
// 注意:只对音频资源包加密
|
||||||
if (fileInfo.BundleName.Contains("_gameres_audio"))
|
if (fileInfo.BundleName.Contains("_gameres_audio"))
|
||||||
{
|
{
|
||||||
int offset = 32;
|
int offset = 32;
|
||||||
|
@ -32,7 +33,7 @@ public class FileOffsetEncryption : IEncryptionServices
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 文件流加密方式
|
/// 文件流加密方式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class FileStreamEncryption : IEncryptionServices
|
public class FileStreamEncryption : IEncryptionServices
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue