mirror of https://github.com/tuyoogame/YooAsset
parent
a6ee571d65
commit
98c5851071
|
@ -92,7 +92,7 @@ internal class WXFSDownloadFileOperation : DefaultDownloadFileOperation
|
||||||
|
|
||||||
private void CreateWebRequest()
|
private void CreateWebRequest()
|
||||||
{
|
{
|
||||||
_webRequest = WXAssetBundle.GetAssetBundle(_requestURL);
|
_webRequest = UnityWebRequest.Get(_requestURL);
|
||||||
_webRequest.SetRequestHeader("wechatminigame-preload", "1");
|
_webRequest.SetRequestHeader("wechatminigame-preload", "1");
|
||||||
_webRequest.disposeDownloadHandlerOnDispose = true;
|
_webRequest.disposeDownloadHandlerOnDispose = true;
|
||||||
_webRequest.SendWebRequest();
|
_webRequest.SendWebRequest();
|
||||||
|
|
|
@ -39,7 +39,7 @@ internal class WXFSLoadBundleOperation : FSLoadBundleOperation
|
||||||
|
|
||||||
if (_bundle.Encrypted)
|
if (_bundle.Encrypted)
|
||||||
{
|
{
|
||||||
_downloadAssetBundleOp = new DownloadWebEncryptAssetBundleOperation(_fileSystem.DecryptionServices, _bundle, downloadParam);
|
_downloadAssetBundleOp = new DownloadWebEncryptAssetBundleOperation(false, _fileSystem.DecryptionServices, _bundle, downloadParam);
|
||||||
OperationSystem.StartOperation(_fileSystem.PackageName, _downloadAssetBundleOp);
|
OperationSystem.StartOperation(_fileSystem.PackageName, _downloadAssetBundleOp);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue