From d4549b1228e65d61bec9242aba83473b8ae40916 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 5 Jun 2023 19:02:13 +0800 Subject: [PATCH] update space shooter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了DEMO里IOS平台流解密失败的问题。 --- .../Space Shooter/GameScript/Runtime/PatchLogic/FileStream.cs | 2 +- .../GameScript/Runtime/PatchLogic/FsmNode/FsmInitialize.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FileStream.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FileStream.cs index 29cd987..51839f7 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FileStream.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FileStream.cs @@ -8,7 +8,7 @@ public class BundleStream : FileStream { public const byte KEY = 64; - public BundleStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool useAsync) : base(path, mode, access, share, bufferSize, useAsync) + public BundleStream(string path, FileMode mode, FileAccess access, FileShare share) : base(path, mode, access, share) { } public BundleStream(string path, FileMode mode) : base(path, mode) diff --git a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitialize.cs b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitialize.cs index 642577d..1e05ca5 100644 --- a/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitialize.cs +++ b/Assets/YooAsset/Samples~/Space Shooter/GameScript/Runtime/PatchLogic/FsmNode/FsmInitialize.cs @@ -144,7 +144,7 @@ internal class FsmInitialize : IStateNode public Stream LoadFromStream(DecryptFileInfo fileInfo) { - BundleStream bundleStream = new BundleStream(fileInfo.FilePath, FileMode.Open); + BundleStream bundleStream = new BundleStream(fileInfo.FilePath, FileMode.Open, FileAccess.Read, FileShare.Read); return bundleStream; }