mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-13 08:56:40 +00:00
28 lines
718 B
C#
28 lines
718 B
C#
|
using ChocolArm64.Memory;
|
||
|
|
||
|
namespace Ryujinx.OsHle
|
||
|
{
|
||
|
struct MemoryInfo
|
||
|
{
|
||
|
public long BaseAddress;
|
||
|
public long Size;
|
||
|
public int MemType;
|
||
|
public int MemAttr;
|
||
|
public int MemPerm;
|
||
|
public int IpcRefCount;
|
||
|
public int DeviceRefCount;
|
||
|
public int Padding; //SBZ
|
||
|
|
||
|
public MemoryInfo(AMemoryMapInfo MapInfo)
|
||
|
{
|
||
|
BaseAddress = MapInfo.Position;
|
||
|
Size = MapInfo.Size;
|
||
|
MemType = MapInfo.Type;
|
||
|
MemAttr = 0;
|
||
|
MemPerm = (int)MapInfo.Perm;
|
||
|
IpcRefCount = 0;
|
||
|
DeviceRefCount = 0;
|
||
|
Padding = 0;
|
||
|
}
|
||
|
}
|
||
|
}
|