mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-27 14:26:44 +01:00
26 lines
503 B
C#
26 lines
503 B
C#
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();
|
|
}
|
|
}
|
|
}
|