25 lines
714 B
C#
25 lines
714 B
C#
using System.IO;
|
|
using UnityEngine;
|
|
using YooAsset;
|
|
namespace PhxhSDK.AOT
|
|
{
|
|
public class YooDecryptionFS : IDecryptionServices
|
|
{
|
|
|
|
public AssetBundle LoadAssetBundle(DecryptFileInfo fileInfo,
|
|
out Stream managedStream)
|
|
{
|
|
managedStream = new CustomFileStream(fileInfo.FileLoadPath);
|
|
return AssetBundle.LoadFromStream(managedStream);
|
|
}
|
|
|
|
public AssetBundleCreateRequest LoadAssetBundleAsync(DecryptFileInfo fileInfo,
|
|
out Stream managedStream)
|
|
{
|
|
managedStream = new CustomFileStream(fileInfo.FileLoadPath);
|
|
return AssetBundle.LoadFromStreamAsync(managedStream);
|
|
}
|
|
|
|
}
|
|
}
|