update samples

pull/82/head
hevinci 2023-03-03 11:53:22 +08:00
parent 46c9110b85
commit fc3ed28eda
1 changed files with 1 additions and 11 deletions

View File

@ -3,21 +3,11 @@ using System.IO;
using System.Text; using System.Text;
using YooAsset; using YooAsset;
public class EncryptionNone : IEncryptionServices
{
public EncryptResult Encrypt(EncryptFileInfo fileInfo)
{
EncryptResult result = new EncryptResult();
result.LoadMethod = EBundleLoadMethod.Normal;
return result;
}
}
public class FileOffsetEncryption : IEncryptionServices public class FileOffsetEncryption : IEncryptionServices
{ {
public EncryptResult Encrypt(EncryptFileInfo fileInfo) public EncryptResult Encrypt(EncryptFileInfo fileInfo)
{ {
if(fileInfo.BundleName.Contains("gameres_music")) if (fileInfo.BundleName.Contains("_gameres_audio"))
{ {
int offset = 32; int offset = 32;
byte[] fileData = File.ReadAllBytes(fileInfo.FilePath); byte[] fileData = File.ReadAllBytes(fileInfo.FilePath);