stub set_sys (#49)

This commit is contained in:
emmauss 2018-03-01 22:23:55 +02:00 committed by gdkchan
parent 5d8a615c21
commit 65e04e9854
2 changed files with 36 additions and 0 deletions

View file

@ -46,6 +46,7 @@ namespace Ryujinx.Core.OsHle.IpcServices
case "pctl:a": return new ServicePctl();
case "pl:u": return new ServicePl();
case "set": return new ServiceSet();
case "set:sys": return new ServiceSetSys();
case "sfdnsres": return new ServiceSfdnsres();
case "sm:": return new ServiceSm();
case "ssl": return new ServiceSsl();

View file

@ -0,0 +1,35 @@
using ChocolArm64.Memory;
using Ryujinx.Core.OsHle.Ipc;
using System;
using System.Collections.Generic;
namespace Ryujinx.Core.OsHle.IpcServices.Set
{
class ServiceSetSys : IIpcService
{
private Dictionary<int, ServiceProcessRequest> m_Commands;
public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
public ServiceSetSys()
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 23, GetColorSetId },
{ 24, SetColorSetId }
};
}
public static long GetColorSetId(ServiceCtx Context)
{
//Use white system theme
Context.ResponseData.Write(1);
return 0;
}
public static long SetColorSetId(ServiceCtx Context)
{
return 0;
}
}
}