From acb7f3bf9adeea85bca2bf86847477650a35c235 Mon Sep 17 00:00:00 2001 From: Lordmau5 Date: Mon, 11 Jun 2018 01:54:57 +0200 Subject: [PATCH] Implement CreateManagedDisplayLayer on ISelfController --- Ryujinx.Core/OsHle/Services/Am/ISelfController.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Ryujinx.Core/OsHle/Services/Am/ISelfController.cs b/Ryujinx.Core/OsHle/Services/Am/ISelfController.cs index 3fd5c7fc4d..a9f5c89711 100644 --- a/Ryujinx.Core/OsHle/Services/Am/ISelfController.cs +++ b/Ryujinx.Core/OsHle/Services/Am/ISelfController.cs @@ -25,6 +25,7 @@ namespace Ryujinx.Core.OsHle.Services.Am { 13, SetFocusHandlingMode }, { 14, SetRestartMessageEnabled }, { 16, SetOutOfFocusSuspendingEnabled }, + { 40, CreateManagedDisplayLayer }, { 50, SetHandlesRequestToDisplay } }; @@ -105,6 +106,15 @@ namespace Ryujinx.Core.OsHle.Services.Am return 0; } + public long CreateManagedDisplayLayer(ServiceCtx Context) + { + Context.Ns.Log.PrintStub(LogClass.ServiceAm, "Stubbed."); + + Context.ResponseData.Write(1L); + + return 0; + } + public long SetHandlesRequestToDisplay(ServiceCtx Context) { bool Enable = Context.RequestData.ReadByte() != 0 ? true : false;