aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2018-02-25 00:09:10 +0100
committergdkchan <gab.dark.100@gmail.com>2018-02-24 20:09:10 -0300
commite90a0f0e33099565ab25cccfb0f62abe49930b7a (patch)
tree080287e29ed89c79efb26ff48d73802231e19122
parent8fa26a18c58c773dd0f3cf0190bd30f8d2d1430d (diff)
Update SvcSystem.cs (#40)
* Update SvcSystem.cs Implement SvcGetInfo 0 * Update SvcSystem.cs
-rw-r--r--Ryujinx.Core/OsHle/Svc/SvcSystem.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Ryujinx.Core/OsHle/Svc/SvcSystem.cs b/Ryujinx.Core/OsHle/Svc/SvcSystem.cs
index 71edfbd6..a69d3b40 100644
--- a/Ryujinx.Core/OsHle/Svc/SvcSystem.cs
+++ b/Ryujinx.Core/OsHle/Svc/SvcSystem.cs
@@ -161,6 +161,7 @@ namespace Ryujinx.Core.OsHle.Svc
switch (InfoType)
{
+ case 0: ThreadState.X1 = AllowedCpuIdBitmask(); break;
case 2: ThreadState.X1 = GetMapRegionBaseAddr(); break;
case 3: ThreadState.X1 = GetMapRegionSize(); break;
case 4: ThreadState.X1 = GetHeapRegionBaseAddr(); break;
@@ -179,6 +180,11 @@ namespace Ryujinx.Core.OsHle.Svc
ThreadState.X0 = (int)SvcResult.Success;
}
+
+ private ulong AllowedCpuIdBitmask()
+ {
+ return 0xF; //Mephisto value.
+ }
private ulong GetMapRegionBaseAddr()
{
@@ -230,4 +236,4 @@ namespace Ryujinx.Core.OsHle.Svc
return AMemoryMgr.AddrSize - GetAddrSpaceBaseAddr();
}
}
-} \ No newline at end of file
+}