From d8bc8ddd03e7cca2117ce372bbf1096c7f4db20e Mon Sep 17 00:00:00 2001 From: emmaus Date: Wed, 3 Oct 2018 20:24:30 +0000 Subject: [PATCH] add irs logclass, stub mmu:u irequest 1 --- Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs | 4 ++-- Ryujinx.HLE/HOS/Services/Mm/IRequest.cs | 15 ++++++++++++--- Ryujinx.HLE/Logging/LogClass.cs | 1 + 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs b/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs index 7831245ac7..d0b2ba1a9b 100644 --- a/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs +++ b/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs @@ -28,7 +28,7 @@ namespace Ryujinx.HLE.HOS.Services.Irs long AppletResourceUserId = Context.RequestData.ReadInt64(); int IrsSensorHandle = Context.RequestData.ReadInt32(); - Context.Device.Log.PrintStub(LogClass.ServiceHid, $"Stubbed. AppletResourceUserId: {AppletResourceUserId} - " + + Context.Device.Log.PrintStub(LogClass.ServiceIrs, $"Stubbed. AppletResourceUserId: {AppletResourceUserId} - " + $"IrsSensorHandle: {IrsSensorHandle}"); return 0; @@ -39,7 +39,7 @@ namespace Ryujinx.HLE.HOS.Services.Irs long AppletResourceUserId = Context.RequestData.ReadInt64(); int IrsSensorHandle = Context.RequestData.ReadInt32(); - Context.Device.Log.PrintStub(LogClass.ServiceHid, $"Stubbed. AppletResourceUserId: {AppletResourceUserId} - " + + Context.Device.Log.PrintStub(LogClass.ServiceIrs, $"Stubbed. AppletResourceUserId: {AppletResourceUserId} - " + $"IrsSensorHandle: {IrsSensorHandle}"); return 0; diff --git a/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs b/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs index e65ef08679..e5a256ecdb 100644 --- a/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs +++ b/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs @@ -1,5 +1,6 @@ using Ryujinx.HLE.HOS.Ipc; using Ryujinx.HLE.Logging; +using System; using System.Collections.Generic; namespace Ryujinx.HLE.HOS.Services.Mm @@ -14,12 +15,20 @@ namespace Ryujinx.HLE.HOS.Services.Mm { m_Commands = new Dictionary() { - { 4, Initialize }, - { 6, SetAndWait }, - { 7, Get } + { 1, InitializeOld }, + { 4, Initialize }, + { 6, SetAndWait }, + { 7, Get } }; } + public long InitializeOld(ServiceCtx Context) + { + Context.Device.Log.PrintStub(LogClass.ServiceMm, "Stubbed."); + + return 0; + } + public long Initialize(ServiceCtx Context) { Context.Device.Log.PrintStub(LogClass.ServiceMm, "Stubbed."); diff --git a/Ryujinx.HLE/Logging/LogClass.cs b/Ryujinx.HLE/Logging/LogClass.cs index 95cae7e0ab..4905013411 100644 --- a/Ryujinx.HLE/Logging/LogClass.cs +++ b/Ryujinx.HLE/Logging/LogClass.cs @@ -22,6 +22,7 @@ namespace Ryujinx.HLE.Logging ServiceFriend, ServiceFs, ServiceHid, + ServiceIrs, ServiceLm, ServiceMm, ServiceNfp,