mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-01 03:07:17 +01:00
27 lines
513 B
C#
27 lines
513 B
C#
using Ryujinx.Graphics.Gal;
|
|
using System.IO;
|
|
|
|
namespace Ryujinx.ShaderTools
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|