mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-24 17:50:15 +00:00
update samples
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user