mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-06-25 23:53:46 +00:00
fix #224
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using YooAsset;
|
||||
|
||||
/// <summary>
|
||||
/// <EFBFBD>ļ<EFBFBD>ƫ<EFBFBD>Ƽ<EFBFBD><EFBFBD>ܷ<EFBFBD>ʽ
|
||||
/// 文件偏移加密方式
|
||||
/// </summary>
|
||||
public class FileOffsetEncryption : IEncryptionServices
|
||||
{
|
||||
public EncryptResult Encrypt(EncryptFileInfo fileInfo)
|
||||
{
|
||||
// 注意:只对音频资源包加密
|
||||
if (fileInfo.BundleName.Contains("_gameres_audio"))
|
||||
{
|
||||
int offset = 32;
|
||||
@@ -32,7 +33,7 @@ public class FileOffsetEncryption : IEncryptionServices
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܷ<EFBFBD>ʽ
|
||||
/// 文件流加密方式
|
||||
/// </summary>
|
||||
public class FileStreamEncryption : IEncryptionServices
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user