From b9b6e9d03f407e8b81bd25376a3228d911b7aef1 Mon Sep 17 00:00:00 2001 From: Melissa Goad Date: Wed, 18 Apr 2018 23:55:23 -0500 Subject: [PATCH] Implement svcGetInfo type 16, from Yuzu --- Ryujinx.Core/OsHle/Kernel/SvcSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs b/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs index ebbbef4aaf..57c4fcce7f 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs @@ -14,6 +14,7 @@ namespace Ryujinx.Core.OsHle.Kernel partial class SvcHandler { private const int AllowedCpuIdBitmask = 0b1111; + private ulong IsVirtualAddressMemoryEnabled = 0; private const bool EnableProcessDebugging = false; @@ -297,6 +298,9 @@ namespace Ryujinx.Core.OsHle.Kernel ThreadState.X1 = MemoryRegions.MapRegionSize; break; + case 16: + ThreadState.X1 = IsVirtualAddressMemoryEnabled; + break; default: throw new NotImplementedException($"SvcGetInfo: {InfoType} {Handle} {InfoId}"); }