From 0d69d8e6c1012bca977552bbcc06d4ddb25ec8a5 Mon Sep 17 00:00:00 2001 From: Thomas Guillemard Date: Fri, 26 Apr 2019 00:57:18 +0200 Subject: [PATCH] Add IManagerDisplayService::CreateStrayLayer (#683) This was added in 7.0.0 --- .../HOS/Services/Vi/IApplicationDisplayService.cs | 2 +- Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs b/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs index 48cf328806..686f85efae 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs @@ -61,7 +61,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi public long GetManagerDisplayService(ServiceCtx context) { - MakeObject(context, new IManagerDisplayService()); + MakeObject(context, new IManagerDisplayService(this)); return 0; } diff --git a/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs b/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs index c655e26cc0..d717b78a65 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs @@ -10,14 +10,15 @@ namespace Ryujinx.HLE.HOS.Services.Vi public override IReadOnlyDictionary Commands => _commands; - public IManagerDisplayService() + public IManagerDisplayService(IApplicationDisplayService applicationDisplayService) { _commands = new Dictionary { - { 2010, CreateManagedLayer }, - { 2011, DestroyManagedLayer }, - { 6000, AddToLayerStack }, - { 6002, SetLayerVisibility } + { 2010, CreateManagedLayer }, + { 2011, DestroyManagedLayer }, + { 2012, applicationDisplayService.CreateStrayLayer }, + { 6000, AddToLayerStack }, + { 6002, SetLayerVisibility } }; }