Implement ISystemDisplayService::GetDisplayMode & Add IManagerDisplayService::SetLayerVisibility stub (#118)
* Add ISystemDisplayService::GetDisplayMode & IManagerDisplayService::SetLayerVisibility Also add some missing PrintStub calls * Fix import ordering & Fix incorrect value for the third word in GetDisplayMode
This commit is contained in:

committed by
gdkchan

parent
ac91607ac3
commit
0979426e63
@ -1,3 +1,4 @@
|
||||
using Ryujinx.Core.Logging;
|
||||
using Ryujinx.Core.OsHle.Ipc;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@ -14,17 +15,29 @@ namespace Ryujinx.Core.OsHle.Services.Vi
|
||||
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
||||
{
|
||||
{ 2205, SetLayerZ },
|
||||
{ 2207, SetLayerVisibility }
|
||||
{ 2207, SetLayerVisibility },
|
||||
{ 3200, GetDisplayMode }
|
||||
};
|
||||
}
|
||||
|
||||
public static long SetLayerZ(ServiceCtx Context)
|
||||
{
|
||||
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long SetLayerVisibility(ServiceCtx Context)
|
||||
{
|
||||
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static long GetDisplayMode(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write(1280);
|
||||
Context.ResponseData.Write(720);
|
||||
Context.ResponseData.Write(60.0f);
|
||||
Context.ResponseData.Write(0);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user