mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-31 10:09:42 -06:00
Split main project into core,graphics and chocolarm4 subproject (#29)
This commit is contained in:
28
Ryujinx.Core/OsHle/MemoryInfo.cs
Normal file
28
Ryujinx.Core/OsHle/MemoryInfo.cs
Normal file
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user