Explorar o código

Add IManagerDisplayService::CreateStrayLayer (#683)

This was added in 7.0.0
Thomas Guillemard %!s(int64=7) %!d(string=hai) anos
pai
achega
0d69d8e6c1

+ 1 - 1
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;
         }

+ 6 - 5
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                         }
             };
         }