mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-28 03:24:04 +00:00
Update SvcSystem.cs (#40)
* Update SvcSystem.cs Implement SvcGetInfo 0 * Update SvcSystem.cs
This commit is contained in:
parent
8fa26a18c5
commit
e90a0f0e33
1 changed files with 7 additions and 1 deletions
|
@ -161,6 +161,7 @@ namespace Ryujinx.Core.OsHle.Svc
|
||||||
|
|
||||||
switch (InfoType)
|
switch (InfoType)
|
||||||
{
|
{
|
||||||
|
case 0: ThreadState.X1 = AllowedCpuIdBitmask(); break;
|
||||||
case 2: ThreadState.X1 = GetMapRegionBaseAddr(); break;
|
case 2: ThreadState.X1 = GetMapRegionBaseAddr(); break;
|
||||||
case 3: ThreadState.X1 = GetMapRegionSize(); break;
|
case 3: ThreadState.X1 = GetMapRegionSize(); break;
|
||||||
case 4: ThreadState.X1 = GetHeapRegionBaseAddr(); break;
|
case 4: ThreadState.X1 = GetHeapRegionBaseAddr(); break;
|
||||||
|
@ -180,6 +181,11 @@ namespace Ryujinx.Core.OsHle.Svc
|
||||||
ThreadState.X0 = (int)SvcResult.Success;
|
ThreadState.X0 = (int)SvcResult.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private ulong AllowedCpuIdBitmask()
|
||||||
|
{
|
||||||
|
return 0xF; //Mephisto value.
|
||||||
|
}
|
||||||
|
|
||||||
private ulong GetMapRegionBaseAddr()
|
private ulong GetMapRegionBaseAddr()
|
||||||
{
|
{
|
||||||
return MemoryRegions.MapRegionAddress;
|
return MemoryRegions.MapRegionAddress;
|
||||||
|
|
Loading…
Reference in a new issue