156 lines
4.3 KiB
C#
156 lines
4.3 KiB
C#
using LibHac.Util;
|
|
using Ryujinx.Common.Logging;
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
using Ryujinx.Horizon.Common;
|
|
using System;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.OverlayAppletProxy
|
|
{
|
|
class IOverlayFunctions : IpcService
|
|
{
|
|
|
|
public IOverlayFunctions(Horizon system)
|
|
{
|
|
}
|
|
|
|
[CommandCmif(0)]
|
|
// BeginToWatchShortHomeButtonMessage()
|
|
public ResultCode BeginToWatchShortHomeButtonMessage(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(1)]
|
|
// EndToWatchShortHomeButtonMessage()
|
|
public ResultCode EndToWatchShortHomeButtonMessage(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(2)]
|
|
// GetApplicationIdForLogo() -> nn::ncm::ApplicationId
|
|
public ResultCode GetApplicationIdForLogo(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
context.ResponseData.Write(0L);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(3)]
|
|
// SetGpuTimeSliceBoost(u64)
|
|
public ResultCode SetGpuTimeSliceBoost(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(4)]
|
|
// SetAutoSleepTimeAndDimmingTimeEnabled(u8)
|
|
public ResultCode SetAutoSleepTimeAndDimmingTimeEnabled(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(5)]
|
|
// TerminateApplicationAndSetReason(u32)
|
|
public ResultCode TerminateApplicationAndSetReason(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(6)]
|
|
// SetScreenShotPermissionGlobally(u8)
|
|
public ResultCode SetScreenShotPermissionGlobally(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(10)]
|
|
// StartShutdownSequenceForOverlay()
|
|
public ResultCode StartShutdownSequenceForOverlay(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(11)]
|
|
// StartRebootSequenceForOverlay()
|
|
public ResultCode StartRebootSequenceForOverlay(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(20)]
|
|
// SetHandlingHomeButtonShortPressedEnabled(u8)
|
|
public ResultCode SetHandlingHomeButtonShortPressedEnabled(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(21)]
|
|
// SetHandlingTouchScreenInputEnabled(u8)
|
|
public ResultCode SetHandlingTouchScreenInputEnabled(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(30)]
|
|
// SetHealthWarningShowingState(u8)
|
|
public ResultCode SetHealthWarningShowingState(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(31)]
|
|
// IsHealthWarningRequired() -> bool
|
|
public ResultCode IsHealthWarningRequired(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
context.ResponseData.Write(false);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(90)]
|
|
// SetRequiresGpuResourceUse(u8)
|
|
public ResultCode SetRequiresGpuResourceUse(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[CommandCmif(101)]
|
|
// BeginToObserveHidInputForDevelop()
|
|
public ResultCode BeginToObserveHidInputForDevelop(ServiceCtx context)
|
|
{
|
|
Logger.Stub?.PrintStub(LogClass.ServiceAm);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
}
|