mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-30 13:32:13 +01:00
560ccbeb2d
* Refactoring commands handling - Use Reflection to handle commands ID. - Add all symbols (from SwIPC so not all time accurate). - Re-sort some services commands methods. - Some cleanup. - Keep some empty constructor for consistency. * Fix order in IProfile
32 lines
No EOL
1 KiB
C#
32 lines
No EOL
1 KiB
C#
using Ryujinx.Common.Logging;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Apm
|
|
{
|
|
class ISession : IpcService
|
|
{
|
|
public ISession() { }
|
|
|
|
[Command(0)]
|
|
// SetPerformanceConfiguration(nn::apm::PerformanceMode, nn::apm::PerformanceConfiguration)
|
|
public long SetPerformanceConfiguration(ServiceCtx context)
|
|
{
|
|
PerformanceMode perfMode = (PerformanceMode)context.RequestData.ReadInt32();
|
|
PerformanceConfiguration perfConfig = (PerformanceConfiguration)context.RequestData.ReadInt32();
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(1)]
|
|
// GetPerformanceConfiguration(nn::apm::PerformanceMode) -> nn::apm::PerformanceConfiguration
|
|
public long GetPerformanceConfiguration(ServiceCtx context)
|
|
{
|
|
PerformanceMode perfMode = (PerformanceMode)context.RequestData.ReadInt32();
|
|
|
|
context.ResponseData.Write((uint)PerformanceConfiguration.PerformanceConfiguration1);
|
|
|
|
Logger.PrintStub(LogClass.ServiceApm);
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
} |