update space shooter

修复了DEMO里IOS平台流解密失败的问题。
pull/122/head
hevinci 2023-06-05 19:02:13 +08:00
parent fcf9eff2f6
commit d4549b1228
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ public class BundleStream : FileStream
{ {
public const byte KEY = 64; 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) public BundleStream(string path, FileMode mode) : base(path, mode)

View File

@ -144,7 +144,7 @@ internal class FsmInitialize : IStateNode
public Stream LoadFromStream(DecryptFileInfo fileInfo) 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; return bundleStream;
} }