aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Guillemard <me@thog.eu>2019-04-26 00:57:18 +0200
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2019-04-26 08:57:18 +1000
commit0d69d8e6c1012bca977552bbcc06d4ddb25ec8a5 (patch)
treeb7ec4c5ec8356178b43b4a8dea99e424bc900e40
parent6e8c080968a3de33166c258512bd69e08b73aa69 (diff)
Add IManagerDisplayService::CreateStrayLayer (#683)
This was added in 7.0.0
-rw-r--r--Ryujinx.HLE/HOS/Services/Vi/IApplicationDisplayService.cs2
-rw-r--r--Ryujinx.HLE/HOS/Services/Vi/IManagerDisplayService.cs11
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 48cf3288..686f85ef 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 c655e26c..d717b78a 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<int, ServiceProcessRequest> Commands => _commands;
- public IManagerDisplayService()
+ public IManagerDisplayService(IApplicationDisplayService applicationDisplayService)
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
- { 2010, CreateManagedLayer },
- { 2011, DestroyManagedLayer },
- { 6000, AddToLayerStack },
- { 6002, SetLayerVisibility }
+ { 2010, CreateManagedLayer },
+ { 2011, DestroyManagedLayer },
+ { 2012, applicationDisplayService.CreateStrayLayer },
+ { 6000, AddToLayerStack },
+ { 6002, SetLayerVisibility }
};
}