2018-08-16 19:47:36 -04:00
|
|
|
using Ryujinx.HLE.HOS.Ipc;
|
2018-06-10 20:46:42 -04:00
|
|
|
using Ryujinx.HLE.Logging;
|
2018-05-26 16:49:21 -04:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2018-08-16 19:47:36 -04:00
|
|
|
namespace Ryujinx.HLE.HOS.Services.Mm
|
2018-05-26 16:49:21 -04:00
|
|
|
{
|
|
|
|
class IRequest : IpcService
|
|
|
|
{
|
|
|
|
private Dictionary<int, ServiceProcessRequest> m_Commands;
|
|
|
|
|
|
|
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
|
|
|
|
|
|
|
|
public IRequest()
|
|
|
|
{
|
|
|
|
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
|
|
|
{
|
|
|
|
{ 4, Initialize },
|
|
|
|
{ 6, SetAndWait },
|
|
|
|
{ 7, Get }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
public long Initialize(ServiceCtx Context)
|
|
|
|
{
|
2018-08-16 19:47:36 -04:00
|
|
|
Context.Device.Log.PrintStub(LogClass.ServiceMm, "Stubbed.");
|
2018-05-26 16:49:21 -04:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public long SetAndWait(ServiceCtx Context)
|
|
|
|
{
|
2018-08-16 19:47:36 -04:00
|
|
|
Context.Device.Log.PrintStub(LogClass.ServiceMm, "Stubbed.");
|
2018-05-26 16:49:21 -04:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public long Get(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
Context.ResponseData.Write(0);
|
|
|
|
|
2018-08-16 19:47:36 -04:00
|
|
|
Context.Device.Log.PrintStub(LogClass.ServiceMm, "Stubbed.");
|
2018-05-26 16:49:21 -04:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|