23 lines
758 B
C#
23 lines
758 B
C#
|
using System.IO;
|
|||
|
using UnityEngine;
|
|||
|
using YooAsset;
|
|||
|
namespace PhxhSDK.AOT
|
|||
|
{
|
|||
|
public class YooDecryptionNone : IDecryptionServices
|
|||
|
{
|
|||
|
|
|||
|
public AssetBundle LoadAssetBundle(DecryptFileInfo fileInfo,
|
|||
|
out Stream managedStream)
|
|||
|
{
|
|||
|
managedStream = new FileStream(fileInfo.FileLoadPath, FileMode.Open, FileAccess.Read);
|
|||
|
return AssetBundle.LoadFromStream(managedStream);
|
|||
|
}
|
|||
|
public AssetBundleCreateRequest LoadAssetBundleAsync(DecryptFileInfo fileInfo,
|
|||
|
out Stream managedStream)
|
|||
|
{
|
|||
|
managedStream = new FileStream(fileInfo.FileLoadPath, FileMode.Open, FileAccess.Read);
|
|||
|
return AssetBundle.LoadFromStreamAsync(managedStream);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|