This commit is contained in:
Isaac Marovitz 2023-10-21 10:42:04 -04:00
parent 6ff239326f
commit b960597eeb
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
5 changed files with 420 additions and 141 deletions

View file

@ -1,5 +1,5 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf; using Ryujinx.Horizon.Sdk.Sf;
@ -38,12 +38,16 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
[CmifCommand(3)] [CmifCommand(3)]
public Result ChangeMainAppletMasterVolume(float volume, ulong value) public Result ChangeMainAppletMasterVolume(float volume, ulong value)
{ {
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success; return Result.Success;
} }
[CmifCommand(4)] [CmifCommand(4)]
public Result SetTransparentVolumeRate(float volume) public Result SetTransparentVolumeRate(float volume)
{ {
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success; return Result.Success;
} }
} }

View file

@ -1,5 +1,5 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf; using Ryujinx.Horizon.Sdk.Sf;
@ -10,319 +10,425 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
[CmifCommand(0)] [CmifCommand(0)]
public Result GetEventHandle() public Result GetEventHandle()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(1)] [CmifCommand(1)]
public Result ReceiveMessage() public Result ReceiveMessage()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(2)] [CmifCommand(2)]
public Result GetThisAppletKind() public Result GetThisAppletKind()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(3)] [CmifCommand(3)]
public Result AllowToEnterSleep() public Result AllowToEnterSleep()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(4)] [CmifCommand(4)]
public Result DisallowToEnterSleep() public Result DisallowToEnterSleep()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(5)] [CmifCommand(5)]
public Result GetOperationMode() public Result GetOperationMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(6)] [CmifCommand(6)]
public Result GetPerformanceMode() public Result GetPerformanceMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(7)] [CmifCommand(7)]
public Result GetCradleStatus() public Result GetCradleStatus()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(8)] [CmifCommand(8)]
public Result GetBootMode() public Result GetBootMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(9)] [CmifCommand(9)]
public Result GetCurrentFocusState() public Result GetCurrentFocusState()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(10)] [CmifCommand(10)]
public Result RequestToAcquireSleepLock() public Result RequestToAcquireSleepLock()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(11)] [CmifCommand(11)]
public Result ReleaseSleepLock() public Result ReleaseSleepLock()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(12)] [CmifCommand(12)]
public Result ReleaseSleepLockTransiently() public Result ReleaseSleepLockTransiently()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(13)] [CmifCommand(13)]
public Result GetAcquiredSleepLockEvent() public Result GetAcquiredSleepLockEvent()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(14)] [CmifCommand(14)]
public Result GetWakeupCount() public Result GetWakeupCount()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(20)] [CmifCommand(20)]
public Result PushToGeneralChannel() public Result PushToGeneralChannel()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(30)] [CmifCommand(30)]
public Result GetHomeButtonReaderLockAccessor() public Result GetHomeButtonReaderLockAccessor()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(31)] [CmifCommand(31)]
public Result GetReaderLockAccessorEx() public Result GetReaderLockAccessorEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(32)] [CmifCommand(32)]
public Result GetWriterLockAccessorEx() public Result GetWriterLockAccessorEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(40)] [CmifCommand(40)]
public Result GetCradleFwVersion() public Result GetCradleFwVersion()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(50)] [CmifCommand(50)]
public Result IsVrModeEnabled() public Result IsVrModeEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(51)] [CmifCommand(51)]
public Result SetVrModeEnabled() public Result SetVrModeEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(52)] [CmifCommand(52)]
public Result SetLcdBacklightOffEnabled() public Result SetLcdBacklightOffEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(53)] [CmifCommand(53)]
public Result BeginVrModeEx() public Result BeginVrModeEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(54)] [CmifCommand(54)]
public Result EndVrModeEx() public Result EndVrModeEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(55)] [CmifCommand(55)]
public Result IsInControllerFirmwareUpdateSection() public Result IsInControllerFirmwareUpdateSection()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(59)] [CmifCommand(59)]
public Result SetVrPositionForDebug() public Result SetVrPositionForDebug()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(60)] [CmifCommand(60)]
public Result GetDefaultDisplayResolution() public Result GetDefaultDisplayResolution()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(61)] [CmifCommand(61)]
public Result GetDefaultDisplayResolutionChangeEvent() public Result GetDefaultDisplayResolutionChangeEvent()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(62)] [CmifCommand(62)]
public Result GetHdcpAuthenticationState() public Result GetHdcpAuthenticationState()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(63)] [CmifCommand(63)]
public Result GetHdcpAuthenticationStateChangeEvent() public Result GetHdcpAuthenticationStateChangeEvent()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(64)] [CmifCommand(64)]
public Result SetTvPowerStateMatchingMode() public Result SetTvPowerStateMatchingMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(65)] [CmifCommand(65)]
public Result GetApplicationIdByContentActionName() public Result GetApplicationIdByContentActionName()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(66)] [CmifCommand(66)]
public Result SetCpuBoostMode() public Result SetCpuBoostMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(67)] [CmifCommand(67)]
public Result CancelCpuBoostMode() public Result CancelCpuBoostMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(68)] [CmifCommand(68)]
public Result GetBuiltInDisplayType() public Result GetBuiltInDisplayType()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(80)] [CmifCommand(80)]
public Result PerformSystemButtonPressingIfInFocus() public Result PerformSystemButtonPressingIfInFocus()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(90)] [CmifCommand(90)]
public Result SetPerformanceConfigurationChangedNotification() public Result SetPerformanceConfigurationChangedNotification()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(91)] [CmifCommand(91)]
public Result GetCurrentPerformanceConfiguration() public Result GetCurrentPerformanceConfiguration()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(100)] [CmifCommand(100)]
public Result SetHandlingHomeButtonShortPressedEnabled() public Result SetHandlingHomeButtonShortPressedEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(110)] [CmifCommand(110)]
public Result OpenMyGpuErrorHandler() public Result OpenMyGpuErrorHandler()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(120)] [CmifCommand(120)]
public Result GetAppletLaunchedHistory() public Result GetAppletLaunchedHistory()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(200)] [CmifCommand(200)]
public Result GetOperationModeSystemInfo() public Result GetOperationModeSystemInfo()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(300)] [CmifCommand(300)]
public Result GetSettingsPlatformRegion() public Result GetSettingsPlatformRegion()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(400)] [CmifCommand(400)]
public Result ActivateMigrationService() public Result ActivateMigrationService()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(401)] [CmifCommand(401)]
public Result DeactivateMigrationService() public Result DeactivateMigrationService()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(500)] [CmifCommand(500)]
public Result DisableSleepTillShutdown() public Result DisableSleepTillShutdown()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(501)] [CmifCommand(501)]
public Result SuppressDisablingSleepTemporarily() public Result SuppressDisablingSleepTemporarily()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(502)] [CmifCommand(502)]
public Result IsSleepEnabled() public Result IsSleepEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(503)] [CmifCommand(503)]
public Result IsDisablingSleepSuppressed() public Result IsDisablingSleepSuppressed()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(600)] [CmifCommand(600)]
public Result OpenNamedChannelAsChild() public Result OpenNamedChannelAsChild()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(900)] [CmifCommand(900)]
public Result SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled() public Result SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(910)] [CmifCommand(910)]
public Result GetLaunchRequiredTick() public Result GetLaunchRequiredTick()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
} }
} }

View file

@ -1,3 +1,4 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf; using Ryujinx.Horizon.Sdk.Sf;
@ -9,169 +10,225 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
[CmifCommand(0)] [CmifCommand(0)]
public Result GetLastForegroundCaptureImage() public Result GetLastForegroundCaptureImage()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(1)] [CmifCommand(1)]
public Result UpdateLastForegroundCaptureImage() public Result UpdateLastForegroundCaptureImage()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(2)] [CmifCommand(2)]
public Result GetLastApplicationCaptureImage() public Result GetLastApplicationCaptureImage()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(3)] [CmifCommand(3)]
public Result GetCallerAppletCaptureImage() public Result GetCallerAppletCaptureImage()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(4)] [CmifCommand(4)]
public Result UpdateCallerAppletCaptureImage() public Result UpdateCallerAppletCaptureImage()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(5)] [CmifCommand(5)]
public Result GetLastForegroundCaptureImageEx() public Result GetLastForegroundCaptureImageEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(6)] [CmifCommand(6)]
public Result GetLastApplicationCaptureImageEx() public Result GetLastApplicationCaptureImageEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(7)] [CmifCommand(7)]
public Result GetCallerAppletCaptureImageEx() public Result GetCallerAppletCaptureImageEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(8)] [CmifCommand(8)]
public Result TakeScreenShotOfOwnLayer() public Result TakeScreenShotOfOwnLayer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(9)] [CmifCommand(9)]
public Result CopyBetweenCaptureBuffers() public Result CopyBetweenCaptureBuffers()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(10)] [CmifCommand(10)]
public Result AcquireLastApplicationCaptureBuffer() public Result AcquireLastApplicationCaptureBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(11)] [CmifCommand(11)]
public Result ReleaseLastApplicationCaptureBuffer() public Result ReleaseLastApplicationCaptureBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(12)] [CmifCommand(12)]
public Result AcquireLastForegroundCaptureBuffer() public Result AcquireLastForegroundCaptureBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(13)] [CmifCommand(13)]
public Result ReleaseLastForegroundCaptureBuffer() public Result ReleaseLastForegroundCaptureBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(14)] [CmifCommand(14)]
public Result AcquireCallerAppletCaptureBuffer() public Result AcquireCallerAppletCaptureBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(15)] [CmifCommand(15)]
public Result ReleaseCallerAppletCaptureBuffer() public Result ReleaseCallerAppletCaptureBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(16)] [CmifCommand(16)]
public Result AcquireLastApplicationCaptureBufferEx() public Result AcquireLastApplicationCaptureBufferEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(17)] [CmifCommand(17)]
public Result AcquireLastForegroundCaptureBufferEx() public Result AcquireLastForegroundCaptureBufferEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(18)] [CmifCommand(18)]
public Result AcquireCallerAppletCaptureBufferEx() public Result AcquireCallerAppletCaptureBufferEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(20)] [CmifCommand(20)]
public Result ClearCaptureBuffer() public Result ClearCaptureBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(21)] [CmifCommand(21)]
public Result ClearAppletTransitionBuffer() public Result ClearAppletTransitionBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(22)] [CmifCommand(22)]
public Result AcquireLastApplicationCaptureSharedBuffer() public Result AcquireLastApplicationCaptureSharedBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(23)] [CmifCommand(23)]
public Result ReleaseLastApplicationCaptureSharedBuffer() public Result ReleaseLastApplicationCaptureSharedBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(24)] [CmifCommand(24)]
public Result AcquireLastForegroundCaptureSharedBuffer() public Result AcquireLastForegroundCaptureSharedBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(25)] [CmifCommand(25)]
public Result ReleaseLastForegroundCaptureSharedBuffer() public Result ReleaseLastForegroundCaptureSharedBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(26)] [CmifCommand(26)]
public Result AcquireCallerAppletCaptureSharedBuffer() public Result AcquireCallerAppletCaptureSharedBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(27)] [CmifCommand(27)]
public Result ReleaseCallerAppletCaptureSharedBuffer() public Result ReleaseCallerAppletCaptureSharedBuffer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(28)] [CmifCommand(28)]
public Result TakeScreenShotOfOwnLayerEx() public Result TakeScreenShotOfOwnLayerEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
} }
} }

View file

@ -1,5 +1,5 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf; using Ryujinx.Horizon.Sdk.Sf;
@ -10,289 +10,385 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
[CmifCommand(0)] [CmifCommand(0)]
public Result Exit() public Result Exit()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(1)] [CmifCommand(1)]
public Result LockExit() public Result LockExit()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(2)] [CmifCommand(2)]
public Result UnlockExit() public Result UnlockExit()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(3)] [CmifCommand(3)]
public Result EnterFatalSection() public Result EnterFatalSection()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(4)] [CmifCommand(4)]
public Result LeaveFatalSection() public Result LeaveFatalSection()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(9)] [CmifCommand(9)]
public Result GetLibraryAppletLaunchableEvent() public Result GetLibraryAppletLaunchableEvent()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(10)] [CmifCommand(10)]
public Result SetScreenShotPermission() public Result SetScreenShotPermission()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(11)] [CmifCommand(11)]
public Result SetOperationModeChangedNotification() public Result SetOperationModeChangedNotification()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(12)] [CmifCommand(12)]
public Result SetPerformanceModeChangedNotification() public Result SetPerformanceModeChangedNotification()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(13)] [CmifCommand(13)]
public Result SetFocusHandlingMode() public Result SetFocusHandlingMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(14)] [CmifCommand(14)]
public Result SetRestartMessageEnabled() public Result SetRestartMessageEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(15)] [CmifCommand(15)]
public Result SetScreenShotAppletIdentityInfo() public Result SetScreenShotAppletIdentityInfo()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(16)] [CmifCommand(16)]
public Result SetOutOfFocusSuspendingEnabled() public Result SetOutOfFocusSuspendingEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(17)] [CmifCommand(17)]
public Result SetControllerFirmwareUpdateSection() public Result SetControllerFirmwareUpdateSection()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(18)] [CmifCommand(18)]
public Result SetRequiresCaptureButtonShortPressedMessage() public Result SetRequiresCaptureButtonShortPressedMessage()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(19)] [CmifCommand(19)]
public Result SetAlbumImageOrientation() public Result SetAlbumImageOrientation()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(20)] [CmifCommand(20)]
public Result SetDesirableKeyboardLayout() public Result SetDesirableKeyboardLayout()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(21)] [CmifCommand(21)]
public Result GetScreenShotProgramId() public Result GetScreenShotProgramId()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(40)] [CmifCommand(40)]
public Result CreateManagedDisplayLayer() public Result CreateManagedDisplayLayer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(41)] [CmifCommand(41)]
public Result IsSystemBufferSharingEnabled() public Result IsSystemBufferSharingEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(42)] [CmifCommand(42)]
public Result GetSystemSharedLayerHandle() public Result GetSystemSharedLayerHandle()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(43)] [CmifCommand(43)]
public Result GetSystemSharedBufferHandle() public Result GetSystemSharedBufferHandle()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(44)] [CmifCommand(44)]
public Result CreateManagedDisplaySeparableLayer() public Result CreateManagedDisplaySeparableLayer()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(45)] [CmifCommand(45)]
public Result SetManagedDisplayLayerSeparationMode() public Result SetManagedDisplayLayerSeparationMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(46)] [CmifCommand(46)]
public Result SetRecordingLayerCompositionEnabled() public Result SetRecordingLayerCompositionEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(50)] [CmifCommand(50)]
public Result SetHandlesRequestToDisplay() public Result SetHandlesRequestToDisplay()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(51)] [CmifCommand(51)]
public Result ApproveToDisplay() public Result ApproveToDisplay()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(60)] [CmifCommand(60)]
public Result OverrideAutoSleepTimeAndDimmingTime() public Result OverrideAutoSleepTimeAndDimmingTime()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(61)] [CmifCommand(61)]
public Result SetMediaPlaybackState() public Result SetMediaPlaybackState()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(62)] [CmifCommand(62)]
public Result SetIdleTimeDetectionExtension() public Result SetIdleTimeDetectionExtension()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(63)] [CmifCommand(63)]
public Result GetIdleTimeDetectionExtension() public Result GetIdleTimeDetectionExtension()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(64)] [CmifCommand(64)]
public Result SetInputDetectionSourceSet() public Result SetInputDetectionSourceSet()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(65)] [CmifCommand(65)]
public Result ReportUserIsActive() public Result ReportUserIsActive()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(66)] [CmifCommand(66)]
public Result GetCurrentIlluminance() public Result GetCurrentIlluminance()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(67)] [CmifCommand(67)]
public Result IsIlluminanceAvailable() public Result IsIlluminanceAvailable()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(68)] [CmifCommand(68)]
public Result SetAutoSleepDisabled() public Result SetAutoSleepDisabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(69)] [CmifCommand(69)]
public Result IsAutoSleepDisabled() public Result IsAutoSleepDisabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(70)] [CmifCommand(70)]
public Result ReportMultimediaError() public Result ReportMultimediaError()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(71)] [CmifCommand(71)]
public Result GetCurrentIlluminanceEx() public Result GetCurrentIlluminanceEx()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(72)] [CmifCommand(72)]
public Result SetInputDetectionPolicy() public Result SetInputDetectionPolicy()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(80)] [CmifCommand(80)]
public Result SetWirelessPriorityMode() public Result SetWirelessPriorityMode()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(90)] [CmifCommand(90)]
public Result GetAccumulatedSuspendedTickValue() public Result GetAccumulatedSuspendedTickValue()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(91)] [CmifCommand(91)]
public Result GetAccumulatedSuspendedTickChangedEvent() public Result GetAccumulatedSuspendedTickChangedEvent()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(100)] [CmifCommand(100)]
public Result SetAlbumImageTakenNotificationEnabled() public Result SetAlbumImageTakenNotificationEnabled()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(110)] [CmifCommand(110)]
public Result SetApplicationAlbumUserData() public Result SetApplicationAlbumUserData()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(120)] [CmifCommand(120)]
public Result SaveCurrentScreenshot() public Result SaveCurrentScreenshot()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(130)] [CmifCommand(130)]
public Result SetRecordVolumeMuted() public Result SetRecordVolumeMuted()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(1000)] [CmifCommand(1000)]
public Result GetDebugStorageChannel() public Result GetDebugStorageChannel()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
} }
} }

View file

@ -1,5 +1,5 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common; using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am;
using Ryujinx.Horizon.Sdk.Am.Controllers; using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf; using Ryujinx.Horizon.Sdk.Sf;
@ -10,49 +10,65 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
[CmifCommand(0)] [CmifCommand(0)]
public Result CreateWindow() public Result CreateWindow()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(1)] [CmifCommand(1)]
public Result GetAppletResourceUserId() public Result GetAppletResourceUserId()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(2)] [CmifCommand(2)]
public Result GetAppletResourceUserIdOfCallerApplet() public Result GetAppletResourceUserIdOfCallerApplet()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(10)] [CmifCommand(10)]
public Result AcquireForegroundRights() public Result AcquireForegroundRights()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(11)] [CmifCommand(11)]
public Result ReleaseForegroundRights() public Result ReleaseForegroundRights()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(12)] [CmifCommand(12)]
public Result RejectToChangeIntoBackground() public Result RejectToChangeIntoBackground()
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(20)] [CmifCommand(20)]
public Result SetAppletWindowVisibility(bool visibility) public Result SetAppletWindowVisibility(bool visibility)
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
[CmifCommand(21)] [CmifCommand(21)]
public Result SetAppletGpuTimeSlice(long gpuTime) public Result SetAppletGpuTimeSlice(long gpuTime)
{ {
throw new System.NotImplementedException(); Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
} }
} }
} }