1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-24 06:02:03 +00:00
Ryujinx/Ryushader/Memory.cs

27 lines
503 B
C#
Raw Normal View History

using Ryujinx.Graphics.Gal;
using System.IO;
namespace Ryushader
{
class Memory : IGalMemory
{
private Stream BaseStream;
private BinaryReader Reader;
public Memory(Stream BaseStream)
{
this.BaseStream = BaseStream;
Reader = new BinaryReader(BaseStream);
}
public int ReadInt32(long Position)
{
BaseStream.Seek(Position, SeekOrigin.Begin);
return Reader.ReadInt32();
}
}
}