2018-05-23 01:43:31 +00:00
|
|
|
using Ryujinx.Graphics.Gal;
|
|
|
|
using System.IO;
|
|
|
|
|
2018-06-11 00:46:42 +00:00
|
|
|
namespace Ryujinx.ShaderTools
|
2018-05-23 01:43:31 +00:00
|
|
|
{
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|