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