mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Ryujinx.Common.Logging;
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Apm
|
|
{
|
|
class ISession : IpcService
|
|
{
|
|
private Dictionary<int, ServiceProcessRequest> m_Commands;
|
|
|
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
|
|
|
|
public ISession()
|
|
{
|
|
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
|
{
|
|
{ 0, SetPerformanceConfiguration },
|
|
{ 1, GetPerformanceConfiguration }
|
|
};
|
|
}
|
|
|
|
public long SetPerformanceConfiguration(ServiceCtx Context)
|
|
{
|
|
PerformanceMode PerfMode = (PerformanceMode)Context.RequestData.ReadInt32();
|
|
PerformanceConfiguration PerfConfig = (PerformanceConfiguration)Context.RequestData.ReadInt32();
|
|
|
|
return 0;
|
|
}
|
|
|
|
public long GetPerformanceConfiguration(ServiceCtx Context)
|
|
{
|
|
PerformanceMode PerfMode = (PerformanceMode)Context.RequestData.ReadInt32();
|
|
|
|
Context.ResponseData.Write((uint)PerformanceConfiguration.PerformanceConfiguration1);
|
|
|
|
Logger.PrintStub(LogClass.ServiceApm, "Stubbed.");
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
} |