1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-14 07:26:40 +00:00

Update IStorage.cs (#415)

Lock the stream fix a multithreading error when a XCI game try to access to the RomFs.
This commit is contained in:
Ac_K 2018-09-13 13:45:59 +02:00 committed by Thomas Guillemard
parent e5917f8968
commit 476ebf5b03

View file

@ -39,8 +39,11 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
byte[] Data = new byte[Size]; byte[] Data = new byte[Size];
lock (BaseStream)
{
BaseStream.Seek(Offset, SeekOrigin.Begin); BaseStream.Seek(Offset, SeekOrigin.Begin);
BaseStream.Read(Data, 0, Data.Length); BaseStream.Read(Data, 0, Data.Length);
}
Context.Memory.WriteBytes(BuffDesc.Position, Data); Context.Memory.WriteBytes(BuffDesc.Position, Data);
} }