diff options
Diffstat (limited to 'Ryujinx.Core/OsHle/MemoryInfo.cs')
| -rw-r--r-- | Ryujinx.Core/OsHle/MemoryInfo.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/MemoryInfo.cs b/Ryujinx.Core/OsHle/MemoryInfo.cs new file mode 100644 index 00000000..76a4bef3 --- /dev/null +++ b/Ryujinx.Core/OsHle/MemoryInfo.cs @@ -0,0 +1,28 @@ +using ChocolArm64.Memory; + +namespace Ryujinx.Core.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 = MapInfo.Attr; + MemPerm = (int)MapInfo.Perm; + IpcRefCount = 0; + DeviceRefCount = 0; + Padding = 0; + } + } +}
\ No newline at end of file |
