10#include "../sf/service.h"
11#include "../services/apm.h"
12#include "../services/pdm.h"
13#include "../services/caps.h"
14#include "../services/pm.h"
15#include "../services/ncm_types.h"
16#include "../services/acc.h"
17#include "../services/set.h"
18#include "../kernel/tmem.h"
19#include "../kernel/event.h"
25 AppletType_Default = -1,
26 AppletType_Application = 0,
27 AppletType_SystemApplet = 1,
28 AppletType_LibraryApplet = 2,
29 AppletType_OverlayApplet = 3,
30 AppletType_SystemApplication = 4,
127 LibAppletExitReason_Normal = 0,
128 LibAppletExitReason_Canceled = 1,
129 LibAppletExitReason_Abnormal = 2,
130 LibAppletExitReason_Unexpected = 10,
135 AppletApplicationExitReason_Normal = 0,
136 AppletApplicationExitReason_Unknown1 = 1,
137 AppletApplicationExitReason_Unknown2 = 2,
138 AppletApplicationExitReason_Unknown3 = 3,
139 AppletApplicationExitReason_Unknown4 = 4,
140 AppletApplicationExitReason_Unknown5 = 5,
141 AppletApplicationExitReason_Unexpected = 100,
146 AppletThemeColorType_Default = 0,
147 AppletThemeColorType_Unknown1 = 1,
148 AppletThemeColorType_Unknown2 = 2,
149 AppletThemeColorType_Unknown3 = 3,
771Result appletCreateManagedDisplayLayer(
u64 *out);
ApmPerformanceMode
PerformanceMode.
Definition apm.h:12
ApmCpuBoostMode
CpuBoostMode. With appletSetCpuBoostMode, only values 0/1 are available. This allows using higher clo...
Definition apm.h:19
Result appletGetIdleTimeDetectionExtension(AppletIdleTimeDetectionExtension *ext)
Gets the value set by appletSetIdleTimeDetectionExtension.
Result appletGetCallerAppletIdentityInfoStack(AppletIdentityInfo *stack, s32 count, s32 *total_out)
Gets an array of AppletIdentityInfo for the CallerStack.
Result appletGetAppletResourceUsageInfo(AppletResourceUsageInfo *info)
Gets the AppletResourceUsageInfo.
Result appletRequestToSleep(void)
RequestToSleep.
Result appletDeactivateMigrationService(void)
DeactivateMigrationService.
Result appletRequestLaunchApplicationForQuest(u64 application_id, AppletStorage *s, const AppletApplicationAttributeForQuest *attr)
Requests to launch the specified application, for kiosk systems.
Result appletSetScreenShotAppletIdentityInfo(AppletIdentityInfo *info)
Sets the AppletIdentityInfo for screenshots.
Service * appletGetServiceSession_SelfController(void)
Gets the Service object for ISelfController.
Result appletPopRequestLaunchApplicationForDebug(AccountUid *uids, s32 count, u64 *application_id, s32 *total_out)
PopRequestLaunchApplicationForDebug.
Result appletInitializeGamePlayRecording(void)
Initializes video recording.
Result appletApplicationRequestForApplicationToGetForeground(AppletApplication *a)
RequestForApplicationToGetForeground.
Result appletCreateManagedDisplaySeparableLayer(u64 *display_layer, u64 *recording_layer)
CreateManagedDisplaySeparableLayer.
Result appletGetDesirableKeyboardLayout(SetKeyboardLayout *layout)
Gets the DesirableKeyboardLayout previously set by appletSetDesirableKeyboardLayout.
Result appletGetMainAppletApplicationDesiredLanguage(u64 *LanguageCode)
Gets the DesiredLanguage for the MainApplet.
Result appletInitializeApplicationCopyrightFrameBuffer(void)
Initializes the ApplicationCopyrightFrameBuffer, with dimensions 1280x720 + the tmem for it.
Result appletGetHdcpAuthenticationStateChangeEvent(Event *out_event)
Gets an Event which is signaled when the output from appletGetHdcpAuthenticationState changes.
Service * appletGetServiceSession_AudioController(void)
Gets the Service object for IAudioController.
Result appletSetControllerFirmwareUpdateSection(bool flag)
Sets ControllerFirmwareUpdateSection.
LibAppletExitReason
LibraryAppletExitReason.
Definition applet.h:126
Result appletEndBlockingHomeButtonShortAndLongPressed(void)
Ends the blocking started by appletBeginBlockingHomeButtonShortAndLongPressed.
Result appletSetHealthWarningShowingState(bool flag)
SetHealthWarningShowingState.
Result appletQueryApplicationPlayStatistics(PdmApplicationPlayStatistics *stats, const u64 *application_ids, s32 count, s32 *total_out)
Gets ApplicationPlayStatistics.
Result appletGetProgramTotalActiveTime(u64 *activeTime)
Gets the total time in nanoseconds that the current process was actively running (not suspended),...
Result appletGetPopExtraStorageEvent(Event *out_event)
Gets an Event which is signaled when a new storage is available with appletPopExtraStorage where prev...
Result appletIsSleepEnabled(bool *out)
IsSleepEnabled.
Result appletFriendInvitationPushApplicationParameter(AccountUid uid, const void *buffer, u64 size)
Same as appletApplicationPushToFriendInvitationStorageChannel except this uses the MainApplication.
Result appletSetFocusHandlingMode(AppletFocusHandlingMode mode)
Sets the current AppletFocusHandlingMode.
Result appletSetMediaPlaybackState(bool state)
Set media playback state.
Result appletReadThemeStorage(void *buffer, size_t size, u64 offset, u64 *transfer_size)
Reads the ThemeStorage for the current applet.
Result appletGetWriterLockAccessorEx(AppletLockAccessor *a, u32 inval)
Gets a Writer AppletLockAccessor.
bool appletApplicationCheckFinished(AppletApplication *a)
Waits on the Application StateChangedEvent with timeout=0, and returns whether it was successful.
Result appletSetApplicationCopyrightImage(const void *buffer, size_t size, s32 x, s32 y, s32 width, s32 height, AppletWindowOriginMode mode)
Sets the RGBA8 image for use with appletInitializeApplicationCopyrightFrameBuffer.
Result appletIsHealthWarningRequired(bool *out)
IsHealthWarningRequired.
Result appletCanUseApplicationCore(bool *out)
CanUseApplicationCore.
Result appletPopInteractiveInData(AppletStorage *s)
Pops a storage from current-LibraryApplet Interactive input.
Result appletSetGpuTimeSliceBoost(u64 val)
Sets the GpuTimeSliceBoost.
Result appletHolderGetPopInteractiveOutDataEvent(AppletHolder *h, Event **out_event)
Gets the PopInteractiveOutDataEvent.
Result appletGetBuiltInDisplayType(s32 *out)
GetBuiltInDisplayType.
Result appletUnpopExtraStorage(AppletStorage *s)
Unpop a storage for current-LibraryApplet Extra input.
Result appletSetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(void)
SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled.
Result appletCreateApplication(AppletApplication *a, u64 application_id)
Creates an Application.
Service * appletGetServiceSession_LibraryAppletCreator(void)
Gets the Service object for ILibraryAppletCreator.
Result appletSetExpectedMasterVolume(float mainAppletVolume, float libraryAppletVolume)
Sets the ExpectedMasterVolume for MainApplet and LibraryApplet.
Result appletGpuErrorHandlerGetManualGpuErrorDetectionSystemEvent(AppletGpuErrorHandler *g, Event *out_event)
GetManualGpuErrorDetectionSystemEvent.
Result appletPushContext(AppletStorage *s)
Pushes a storage to the ContextStack.
Result appletIsInControllerFirmwareUpdateSection(bool *out)
Gets the ControllerFirmwareUpdateSection flag.
Result appletIsAutoSleepDisabled(bool *out)
Gets AutoSleepDisabled.
Result appletGetPseudoDeviceId(Uuid *out)
Gets the PseudoDeviceId.
Result appletGetCradleFwVersion(u32 *out0, u32 *out1, u32 *out2, u32 *out3)
Gets the Dock firmware version.
Result appletSetVrModeEnabled(bool flag)
Sets whether VrMode is enabled.
Result appletEndToWatchShortHomeButtonMessage(void)
Forwards input to the foreground app.
Result appletSetVrPositionForDebug(s32 x, s32 y, s32 width, s32 height)
SetVrPositionForDebug.
AppletInfo * appletGetAppletInfo(void)
Gets the cached AppletInfo loaded during appletInitialize.
AppletWirelessPriorityMode
Input mode values for appletSetWirelessPriorityMode.
Definition applet.h:190
@ AppletWirelessPriorityMode_OptimizedForWlan
OptimizedForWlan.
Definition applet.h:192
@ AppletWirelessPriorityMode_Default
Default.
Definition applet.h:191
Result appletPopInData(AppletStorage *s)
Pops a storage from current-LibraryApplet input.
Result appletAcquireLastApplicationCaptureSharedBuffer(bool *flag, s32 *id)
Acquire the LastApplication CaptureSharedBuffer.
Result appletPushToAppletBoundChannel(AppletStorage *s)
This is similar to appletPushToAppletBoundChannelForDebug (no DebugMode check), except the used chann...
bool appletProcessMessage(u32 msg)
Processes the current applet status using the specified msg.
Result appletGetWakeupCount(u64 *out)
GetWakeupCount.
void appletHolderJoin(AppletHolder *h)
Waits for the LibraryApplet to exit.
Result appletIsSystemBufferSharingEnabled(void)
Checks whether SystemBufferSharing is enabled, throwing an error otherwise.
Result appletHolderJump(AppletHolder *h)
Jumps to the LibraryApplet, with the current-LibraryApplet being terminated.
AppletTvPowerStateMatchingMode
Mode values for appletSetTvPowerStateMatchingMode.
Definition applet.h:153
@ AppletTvPowerStateMatchingMode_Unknown0
Unknown.
Definition applet.h:154
@ AppletTvPowerStateMatchingMode_Unknown1
Unknown.
Definition applet.h:155
void appletApplicationJoin(AppletApplication *a)
Waits for the Application to exit.
void appletStorageClose(AppletStorage *s)
Closes the storage object.
Result appletUnreserveResourceForMovieOperation(void)
UnreserveResourceForMovieOperation.
Result appletGetMessage(u32 *msg)
Gets a notification message, see AppletMessage.
Result appletHolderSetOutOfFocusApplicationSuspendingEnabled(AppletHolder *h, bool flag)
Sets OutOfFocusApplicationSuspendingEnabled.
Result appletPopLaunchRequestedApplication(AppletApplication *a)
Pops a AppletApplication for a requested Application launch.
Result appletHolderPushExtraStorage(AppletHolder *h, AppletStorage *s)
Pushes a storage for LibraryApplet Extra storage input.
AppletApplicationExitReason
AppletApplicationExitReason.
Definition applet.h:134
Result appletSetHomeButtonDoubleClickEnabled(bool flag)
Sets whether HomeButtonDoubleClick is enabled.
Result appletApplicationGetApplicationId(AppletApplication *a, u64 *application_id)
Gets the ApplicationId for the Application.
Result appletAlarmSettingNotificationEnableAppEventReserve(AppletStorage *s, u64 application_id)
Clears a StorageChannel, pushes the input storage there, and writes the ApplicationId into state.
Result appletIsGamePlayRecordingSupported(bool *flag)
Gets whether video recording is supported.
Result appletApplicationTerminate(AppletApplication *a)
Terminate the Application.
Result appletPopFloatingApplicationForDevelopment(AppletApplication *a)
PopFloatingApplicationForDevelopment.
Result appletSetLcdBacklightOffEnabled(bool flag)
Sets whether the LCD screen backlight is turned off.
Result appletGetPopFromGeneralChannelEvent(Event *out_event)
Gets an Event which is signaled when a new storage is available with appletPopFromGeneralChannel wher...
Result appletIsHomeButtonShortPressedBlocked(bool *out)
IsHomeButtonShortPressedBlocked.
Result appletStartRebootSequence(void)
Start the system-reboot sequence.
Result appletSetApplicationAlbumUserData(const void *buffer, size_t size)
Sets the Application AlbumUserData.
Result appletGetLastApplicationExitReason(s32 *out)
GetLastApplicationExitReason.
Result appletRequestToReboot(void)
Requests a system reboot.
AppletHookType
applet hook types.
Definition applet.h:40
@ AppletHookType_OnPerformanceMode
AppletMessage_PerformanceModeChanged
Definition applet.h:43
@ AppletHookType_Max
Number of applet hook types.
Definition applet.h:50
@ AppletHookType_OnAlbumScreenShotTaken
AppletMessage_AlbumScreenShotTaken
Definition applet.h:47
@ AppletHookType_OnResume
AppletMessage_Resume
Definition applet.h:45
@ AppletHookType_OnCaptureButtonShortPressed
AppletMessage_CaptureButtonShortPressed
Definition applet.h:46
@ AppletHookType_OnOperationMode
AppletMessage_OperationModeChanged
Definition applet.h:42
@ AppletHookType_OnExitRequest
::AppletMessage_ExitRequested
Definition applet.h:44
@ AppletHookType_RequestToDisplay
AppletMessage_RequestToDisplay
Definition applet.h:48
@ AppletHookType_OnFocusState
AppletMessage_FocusStateChanged
Definition applet.h:41
Result appletGpuErrorHandlerFinishManualGpuErrorHandling(AppletGpuErrorHandler *g)
FinishManualGpuErrorHandling.
Result appletClearAppletTransitionBuffer(u32 color)
Clear the AppletTransitionBuffer with the specified color.
Result appletActivateMigrationService(void)
ActivateMigrationService.
Result appletGetDisplayLogicalResolution(s32 *width, s32 *height)
Gets the DisplayLogicalResolution.
Service * appletGetServiceSession_CommonStateGetter(void)
Gets the Service object for ICommonStateGetter.
Result appletUpdateLastForegroundCaptureImage(void)
Update the LastForeground CaptureImage.
Result appletGetHomeButtonWriterLockAccessor(AppletLockAccessor *a)
Gets a AppletLockAccessor for HomeButtonWriter.
Result appletSetHandlesRequestToDisplay(bool flag)
Sets whether AppletMessage_RequestToDisplay is enabled.
Result appletPopLaunchParameter(AppletStorage *s, AppletLaunchParameterKind kind)
Pops a LaunchParameter AppletStorage, the storage will be removed from sysmodule state during this.
bool appletHolderActive(AppletHolder *h)
Returns whether the AppletHolder object was initialized.
Result appletSetGamePlayRecordingState(bool state)
Disable/enable video recording.
Result appletGetMainAppletIdentityInfo(AppletIdentityInfo *info)
Gets the AppletIdentityInfo for the MainApplet.
Result appletReserveResourceForMovieOperation(void)
ReserveResourceForMovieOperation.
Result appletRequestToGetForeground(void)
RequestToGetForeground.
Result appletGetSettingsPlatformRegion(SetSysPlatformRegion *out)
This uses setsysGetPlatformRegion internally.
Result appletGetExpectedMasterVolume(float *mainAppletVolume, float *libraryAppletVolume)
Gets the ExpectedMasterVolume for MainApplet and LibraryApplet.
Result appletShouldSetGpuTimeSliceManually(bool *out)
ShouldSetGpuTimeSliceManually.
Result appletSetTerminateResult(Result res)
SetTerminateResult.
Result appletApplicationPushToNotificationStorageChannel(AppletApplication *a, const void *buffer, u64 size)
Creates a storage using the specified input then pushes it to the Notification StorageChannel.
AppletFocusState
FocusState.
Definition applet.h:67
@ AppletFocusState_OutOfFocus
Out of focus - LibraryApplet open.
Definition applet.h:69
@ AppletFocusState_Background
Out of focus - HOME menu open / console is sleeping.
Definition applet.h:70
@ AppletFocusState_InFocus
Applet is focused.
Definition applet.h:68
Result appletGetDisplayVersion(char *displayVersion)
Gets the DisplayVersion for the current host application control.nacp.
Result appletPerformSystemButtonPressing(AppletSystemButtonType type)
Perform SystemButtonPressing with the specified AppletSystemButtonType.
Result appletGetSystemSharedBufferHandle(u64 *SharedBufferHandle)
Same as appletGetSystemSharedLayerHandle except this just gets the SharedBufferHandle.
Result appletHolderGetIndirectLayerConsumerHandle(AppletHolder *h, u64 *out)
Gets the IndirectLayerConsumerHandle loaded during appletCreateLibraryApplet, on [2....
Result appletSetInputDetectionPolicy(AppletInputDetectionPolicy policy)
Sets the AppletInputDetectionPolicy.
Result appletCreateHandleStorageTmem(AppletStorage *s, void *buffer, s64 size)
Creates a HandleStorage using TransferMemory.
Result appletOpenMainApplication(AppletApplication *a)
Open an AppletApplication for the currently running Application.
Result appletCreateMovieMaker(Service *srv_out, TransferMemory *tmem)
CreateMovieMaker.
Result appletGetPopInteractiveInDataEvent(Event *out_event)
Gets an Event which is signaled when a new storage is available with appletPopInteractiveInData where...
Result appletApplicationReportApplicationExitTimeout(AppletApplication *a)
ReportApplicationExitTimeout.
Result appletGetMainAppletStorageId(NcmStorageId *storageId)
Gets the NcmStorageId for the MainApplet.
Result appletHolderGetLibraryAppletInfo(AppletHolder *h, LibAppletInfo *info)
Gets the LibAppletInfo for the specified LibraryApplet.
Result appletApplicationSetApplicationAttribute(AppletApplication *a, const AppletApplicationAttribute *attr)
Sets the AppletApplicationAttribute for the Application.
Result appletGetDefaultDisplayResolutionChangeEvent(Event *out_event)
Gets an Event which is signaled when the output from appletGetDefaultDisplayResolution changes.
Result appletAlarmSettingNotificationPushAppEventNotify(const void *buffer, u64 size)
Same as appletApplicationPushToNotificationStorageChannel except this uses the MainApplication.
Result appletIsIlluminanceAvailable(bool *out)
Gets whether Illuminance is available.
Result appletHolderPresetLibraryAppletGpuTimeSliceZero(AppletHolder *h)
PresetLibraryAppletGpuTimeSliceZero.
Result appletCreateSystemApplication(AppletApplication *a, u64 system_application_id)
Creates a SystemApplication.
Result appletApplicationHasSaveDataAccessPermission(AppletApplication *a, u64 application_id, bool *out)
Gets whether the savedata specified by the input ApplicationId is accessible.
Result appletGetLibraryAppletInfo(LibAppletInfo *info)
Gets the LibAppletInfo for the current LibraryApplet.
void appletHolderClose(AppletHolder *h)
Closes an AppletHolder object.
Result appletGetHealthWarningDisappearedSystemEvent(Event *out_event)
GetHealthWarningDisappearedSystemEvent.
Result appletInitialize(void)
Initialize applet, called automatically during app startup.
bool appletHolderWaitInteractiveOut(AppletHolder *h)
Waits for the PopInteractiveOutDataEvent and StateChangedEvent.
Result appletSetInputDetectionSourceSet(u32 val)
Sets the InputDetectionSourceSet.
Result appletTerminateAllLibraryApplets(void)
TerminateAllLibraryApplets which were created by the current applet.
Result appletHolderStart(AppletHolder *h)
Starts the LibraryApplet.
bool appletHolderCheckFinished(AppletHolder *h)
Waits on the LibraryApplet StateChangedEvent with timeout=0, and returns whether it was successful.
Result appletCreateTransferMemoryStorage(AppletStorage *s, void *buffer, s64 size, bool writable)
Creates a TransferMemory storage.
void(* AppletHookFn)(AppletHookType hook, void *param)
applet hook function.
Definition applet.h:216
Result appletGetBootMode(PmBootMode *mode)
Gets the BootMode which originated from pmbmGetBootMode.
Result appletApplicationRequestExit(AppletApplication *a)
Requests the Application to exit.
Result appletGetHdcpAuthenticationState(s32 *state)
Gets the HdcpAuthenticationState.
Result appletGetApplicationIdByContentActionName(u64 *application_id, const char *name)
Gets the ApplicationId for the specified ContentActionName string.
Result appletSetDefaultHomeButtonLongPressTime(s64 val)
Sets the DefaultHomeButtonLongPressTime.
Result appletIsVrModeCurtainRequired(bool *out)
IsVrModeCurtainRequired.
Result appletReleaseSleepLock(void)
Release the SleepLock.
Result appletSetAppletWindowVisibility(bool flag)
Sets the current applet WindowVisibility.
AppletLaunchParameterKind
LaunchParameterKind.
Definition applet.h:84
@ AppletLaunchParameterKind_UserChannel
UserChannel. Application-specific LaunchParameter.
Definition applet.h:85
@ AppletLaunchParameterKind_PreselectedUser
account PreselectedUser
Definition applet.h:86
@ AppletLaunchParameterKind_Unknown
Unknown if used by anything?
Definition applet.h:87
void appletNotifyRunning(bool *out)
Notify that the app is now running, for the Application logo screen.
Result appletUnpopInData(AppletStorage *s)
Unpop a storage for current-LibraryApplet input.
Result appletGetPopInDataEvent(Event *out_event)
Gets an Event which is signaled when a new storage is available with appletPopInData where previously...
AppletScreenShotPermission
Permission values for appletSetScreenShotPermission.
Definition applet.h:170
@ AppletScreenShotPermission_Enable
Enable.
Definition applet.h:172
@ AppletScreenShotPermission_Disable
Disable.
Definition applet.h:173
@ AppletScreenShotPermission_Inherit
Inherit from parent applet.
Definition applet.h:171
Result appletAreAnyLibraryAppletsLeft(bool *out)
AreAnyLibraryAppletsLeft which were created by the current applet.
Result appletSetLastApplicationExitReason(s32 reason)
SetLastApplicationExitReason.
Result appletStorageGetHandle(AppletStorage *s, s64 *out, Handle *handle)
Gets data for a HandleStorage originally from appletCreateHandleStorage input.
Result appletExitAndRequestToShowThanksMessage(void)
Exit the application and return to the kiosk demo menu.
Result appletUnlockExit(void)
Unlocks exiting, see appletLockExit.
Result appletGetNotificationStorageChannelEvent(Event *out_event)
Gets an Event which is signaled when a new storage is available with appletTryPopFromNotificationStor...
AppletType appletGetAppletType(void)
Get the AppletType.
Service * appletGetServiceSession_ProcessWindingController(void)
Gets the Service object for IProcessWindingController. Only initialized with AppletType_LibraryApplet...
u64 appletGetAppletResourceUserId(void)
Get the cached AppletResourceUserId.
Result appletGetFriendInvitationStorageChannelEvent(Event *out_event)
Gets an Event which is signaled when a new storage is available with appletTryPopFromFriendInvitation...
Result appletTryPopFromAppletBoundChannelForDebug(AppletStorage *s, s32 channel)
The channel must not be 0 and must match the value previously saved by appletPushToAppletBoundChannel...
Result appletLockAccessorTryLock(AppletLockAccessor *a, bool *flag)
TryLock a LockAccessor.
Result appletLockAccessorLock(AppletLockAccessor *a)
Lock a LockAccessor.
Result appletGetCurrentIlluminance(float *fLux)
Gets the current Illuminance from the light sensor.
Result appletStartSleepSequence(bool flag)
Start the sequence for entering sleep-mode.
Result appletApplicationPushToFriendInvitationStorageChannel(AppletApplication *a, AccountUid uid, const void *buffer, u64 size)
Creates a storage using the specified input then pushes it to the FriendInvitation StorageChannel.
LibAppletExitReason appletHolderGetExitReason(AppletHolder *h)
Gets the LibAppletExitReason set by appletHolderJoin.
Result appletGetPreviousProgramIndex(s32 *programIndex)
Gets the ProgramIndex of the program which launched this program.
Result appletHolderRequestExit(AppletHolder *h)
Requests the LibraryApplet to exit.
Result appletAcquireLastForegroundCaptureSharedBuffer(bool *flag, s32 *id)
Acquire the LastForeground CaptureSharedBuffer.
Result appletBeginBlockingHomeButton(s64 val)
Blocks the usage of the home button, for short presses (Home Menu).
Result appletGetDefaultDisplayResolution(s32 *width, s32 *height)
Gets the DefaultDisplayResolution.
Result appletCreateLibraryAppletSelf(AppletHolder *h, AppletId id, LibAppletMode mode)
Creates a LibraryApplet.
Result appletSetAlbumImageTakenNotificationEnabled(bool flag)
Sets whether AppletMessage_AlbumScreenShotTaken is enabled.
Result appletSetHdcpAuthenticationActivated(bool flag)
SetHdcpAuthenticationActivated.
Result appletSetDisplayMagnification(float x, float y, float width, float height)
Sets the DisplayMagnification.
Service * appletGetServiceSession_DebugFunctions(void)
Gets the Service object for IDebugFunctions.
Result appletStorageMap(AppletStorage *s, void **addr, size_t *size)
Maps TransferMemory for a HandleStorage.
Result appletStartRebootSequenceForOverlay(void)
Start the system-reboot sequence.
Result appletEndBlockingHomeButton(void)
Ends the blocking started by appletBeginBlockingHomeButton.
bool appletMainLoop(void)
Processes the current applet status.
Result appletSetIdleTimeDetectionExtension(AppletIdleTimeDetectionExtension ext)
Sets the IdleTimeDetectionExtension.
Result appletSetAlbumImageOrientation(AlbumImageOrientation orientation)
Sets the Album screenshot ImageOrientation.
Result appletApplicationPushLaunchParameter(AppletApplication *a, AppletLaunchParameterKind kind, AppletStorage *s)
Pushes a LaunchParameter AppletStorage to the Application.
Result appletGetIndirectLayerProducerHandle(u64 *out)
Gets the IndirectLayerProducerHandle.
AppletOperationMode appletGetOperationMode(void)
These return state which is updated by appletMainLoop() when notifications are received.
Result appletGetMainAppletApplicationControlProperty(NacpStruct *nacp)
Gets the NacpStruct for the MainApplet.
Result appletReleaseLastApplicationCaptureSharedBuffer(void)
Release the LastApplication CaptureSharedBuffer.
Result appletRequestToShutdown(void)
Requests a system shutdown.
Result appletEnterFatalSection(void)
Enter FatalSection.
Result appletApplicationRequestApplicationSoftReset(AppletApplication *a)
RequestApplicationSoftReset.
Result appletGpuErrorHandlerGetManualGpuErrorInfoSize(AppletGpuErrorHandler *g, u64 *out)
Gets the size of the info available with appletGpuErrorHandlerGetManualGpuErrorInfo.
Result appletGetLastForegroundCaptureImageEx(void *buffer, size_t size, bool *flag)
Gets the LastForeground CaptureImage.
LibAppletMode
LibraryAppletMode.
Definition applet.h:117
@ LibAppletMode_BackgroundIndirect
Background with indirect display, see appletHolderGetIndirectLayerConsumerHandle.
Definition applet.h:121
@ LibAppletMode_AllForegroundInitiallyHidden
Foreground except initially hidden.
Definition applet.h:122
@ LibAppletMode_NoUi
No UI.
Definition applet.h:120
@ LibAppletMode_AllForeground
Foreground.
Definition applet.h:118
@ LibAppletMode_Background
Background.
Definition applet.h:119
Result appletBeginBlockingHomeButtonShortAndLongPressed(s64 val)
Blocks the usage of the home button, for short (Home Menu) and long (Overlay) presses.
Result appletPushToAppletBoundChannelForDebug(AppletStorage *s, s32 channel)
The channel must match the value already stored in state when the state value is non-zero,...
Result appletTryPopFromAppletBoundChannel(AppletStorage *s)
This is similar to appletTryPopFromAppletBoundChannelForDebug (no DebugMode check),...
Result appletSaveCurrentScreenshot(AlbumReportOption option)
SaveCurrentScreenshot.
Result appletTryPopFromFriendInvitationStorageChannel(AppletStorage *s)
Pops a storage from the FriendInvitation StorageChannel.
Result appletReportUserIsActive(void)
Reports that the user is active, for idle detection (screen dimming / auto-sleep).
Result appletRequestFlushGamePlayingMovieForDebug(void)
Requests to save the video recording, as if the Capture-button was held.
Result appletLockForeground(void)
LockForeground.
void appletGpuErrorHandlerClose(AppletGpuErrorHandler *g)
Close an AppletGpuErrorHandler.
Result appletRequestToAcquireSleepLock(void)
Request to AcquireSleepLock.
Service * appletGetServiceSession_WindowController(void)
Gets the Service object for IWindowController.
Result appletSetApplicationCopyrightVisibility(bool visible)
Sets the visibility for the image set by appletSetApplicationCopyrightImage, in screenshots.
Result appletGetCurrentPerformanceConfiguration(u32 *PerformanceConfiguration)
Gets the current PerformanceConfiguration.
Result appletLockExit(void)
Delay exiting until appletUnlockExit is called, with a 15 second timeout once exit is requested.
Result appletSetPerformanceConfigurationChangedNotification(bool flag)
Sets whether PerformanceConfigurationChangedNotification is enabled.
Result appletIsAutoPowerDownRequested(bool *out)
IsAutoPowerDownRequested.
Result appletNotifyCecSettingsChanged(void)
NotifyCecSettingsChanged.
Result appletTryPopFromNotificationStorageChannel(AppletStorage *s)
Pops a storage from the Notification StorageChannel.
Result appletLoadAndApplyIdlePolicySettings(void)
LoadAndApplyIdlePolicySettings.
AppletThemeColorType appletGetThemeColorType(void)
Gets the state field for AppletThemeColorType. Used internally by libappletArgsCreate.
Result appletSetCpuBoostRequestPriority(s32 priority)
SetCpuBoostRequestPriority.
Result appletSuppressDisablingSleepTemporarily(u64 val)
SuppressDisablingSleepTemporarily.
Result appletPushOutData(AppletStorage *s)
Pushes a storage for current-LibraryApplet output.
Result appletGetCurrentApplicationId(u64 *application_id)
Gets the ApplicationId for the currently running Application.
Result appletTerminateApplicationAndSetReason(Result reason)
TerminateApplicationAndSetReason.
Result appletPopContext(AppletStorage *s)
Pops a storage from the ContextStack.
Result appletStartShutdownSequenceForOverlay(void)
Start the system-shutdown sequence.
Service * appletGetServiceSession_GlobalStateController(void)
Gets the Service object for IGlobalStateController. Only initialized with AppletType_SystemApplet,...
Result appletCreateGameMovieTrimmer(Service *srv_out, TransferMemory *tmem)
CreateGameMovieTrimmer.
AppletApplicationExitReason appletApplicationGetExitReason(AppletApplication *a)
Gets the AppletApplicationExitReason set by appletApplicationJoin.
Result appletSetAutoSleepTimeAndDimmingTimeEnabled(bool flag)
Sets AutoSleepTimeAndDimmingTimeEnabled.
Result appletClearCaptureBuffer(bool flag, AppletCaptureSharedBuffer captureBuf, u32 color)
Clear the input CaptureSharedBuffer with the specified color.
Result appletApplicationGetApplicationControlProperty(AppletApplication *a, NacpStruct *nacp)
Gets the NacpStruct for the Application.
Result appletSetRequiresCaptureButtonShortPressedMessage(bool flag)
Sets whether AppletMessage_CaptureButtonShortPressed is enabled.
Result appletHolderPushInData(AppletHolder *h, AppletStorage *s)
Pushes a storage for LibraryApplet input.
Service * appletGetServiceSession_Functions(void)
Gets the Service object for I*Functions, specific to each AppletType (IApplicationFunctions for Apple...
Result appletHolderRequestExitOrTerminate(AppletHolder *h, u64 timeout)
Uses cmds GetAppletStateChangedEvent and RequestExit, then waits for the LibraryApplet to exit with t...
Result appletReleaseSleepLockTransiently(void)
Release the SleepLock transiently.
Result appletSetAutoSleepDisabled(bool flag)
Sets AutoSleepDisabled.
Result appletGetHomeButtonDoubleClickEnabled(bool *out)
Gets whether HomeButtonDoubleClick is enabled.
Result appletLaunchDevMenu(void)
Launches DevMenu and the dev Overlay-applet.
Result appletGetMainAppletAvailableUsers(AccountUid *uids, s32 count, bool *flag, s32 *total_out)
Gets an array of userIds for the MainApplet AvailableUsers.
Result appletSetDesirableKeyboardLayout(SetKeyboardLayout layout)
Sets the DesirableKeyboardLayout.
Result appletAlarmSettingNotificationDisableAppEventReserve(void)
Clears the StorageChannel/saved-ApplicationId used by appletAlarmSettingNotificationEnableAppEventRes...
AppletInputDetectionPolicy
Input policy values for appletSetInputDetectionPolicy.
Definition applet.h:184
@ AppletInputDetectionPolicy_Unknown1
Unknown.
Definition applet.h:186
@ AppletInputDetectionPolicy_Unknown0
Unknown.
Definition applet.h:185
Result appletApplicationGetNsRightsEnvironmentHandle(AppletApplication *a, u64 *handle)
GetNsRightsEnvironmentHandle.
Result appletHolderTerminate(AppletHolder *h)
Terminate the LibraryApplet.
Result appletAcquireCallerAppletCaptureSharedBuffer(bool *flag, s32 *id)
Acquire the CallerApplet CaptureSharedBuffer.
Service * appletGetServiceSession_Proxy(void)
Gets the Service object for the actual "appletOE"/"appletAE" service session.
Result appletCopyBetweenCaptureBuffers(AppletCaptureSharedBuffer dstCaptureBuf, AppletCaptureSharedBuffer srcCaptureBuf)
Copies image data from a CaptureSharedBuffer to another CaptureSharedBuffer.
Result appletGetCradleStatus(u8 *status)
Gets the CradleStatus.
Result appletGetHomeButtonReaderLockAccessor(AppletLockAccessor *a)
Gets a AppletLockAccessor for HomeButtonReader.
Result appletGetCurrentIlluminanceEx(bool *bOverLimit, float *fLux)
Gets the current Illuminance from the light sensor.
Result appletShouldSleepOnBoot(bool *out)
ShouldSleepOnBoot.
Result appletApplicationStart(AppletApplication *a)
Starts the Application.
Result appletGetHdcpAuthenticationFailedEvent(Event *out_event)
Gets an Event which is signaled for HdcpAuthenticationFailed.
Result appletTakeScreenShotOfOwnLayerEx(bool flag0, bool immediately, AppletCaptureSharedBuffer captureBuf)
Takes a screenshot of the current applet Layer into the specified CaptureSharedBuffer.
Result appletSetScreenShotPermission(AppletScreenShotPermission permission)
Controls whether screenshot-capture is allowed.
void appletSetThemeColorType(AppletThemeColorType theme)
Sets the state field for AppletThemeColorType.
Result appletStartShutdownSequence(void)
Start the system-shutdown sequence.
Result appletRequestLaunchApplication(u64 application_id, AppletStorage *s)
Requests to launch the specified application.
Service * appletGetServiceSession_ApplicationCreator(void)
Gets the Service object for IApplicationCreator. Only initialized with AppletType_SystemApplet.
Result appletSetScreenShotPermissionGlobally(bool flag)
Sets ScreenShotPermissionGlobally.
Result appletChangeMainAppletMasterVolume(float volume, u64 unk)
Change the MainApplet MasterVolume.
void appletApplicationClose(AppletApplication *a)
Close an AppletApplication.
Result appletHolderPopOutData(AppletHolder *h, AppletStorage *s)
Pops a storage from LibraryApplet output.
AppletSystemButtonType
Type values for appletPerformSystemButtonPressingIfInFocus.
Definition applet.h:159
@ AppletSystemButtonType_CaptureButtonShortPressing
Short-pressing with the Capture-button.
Definition applet.h:165
@ AppletSystemButtonType_HomeButtonLongPressing
Long-pressing with the HOME-button.
Definition applet.h:161
@ AppletSystemButtonType_Shutdown
Shutdown the system, as if the Power-button was held for longer than AppletSystemButtonType_PowerButt...
Definition applet.h:164
@ AppletSystemButtonType_HomeButtonShortPressing
Short-pressing with the HOME-button.
Definition applet.h:160
@ AppletSystemButtonType_CaptureButtonLongPressing
Long-pressing with the Capture-button.
Definition applet.h:166
@ AppletSystemButtonType_PowerButtonShortPressing
Short-pressing with the Power-button. Only available with appletPerformSystemButtonPressing.
Definition applet.h:162
@ AppletSystemButtonType_PowerButtonLongPressing
Long-pressing with the Power-button. Only available with appletPerformSystemButtonPressing.
Definition applet.h:163
void appletStorageCloseTmem(AppletStorage *s)
Closes the TransferMemory in the storage object. For TransferMemory storage created by the current pr...
AppletIdleTimeDetectionExtension
Extension values for appletSetIdleTimeDetectionExtension / appletGetIdleTimeDetectionExtension,...
Definition applet.h:177
@ AppletIdleTimeDetectionExtension_Extended
Extended.
Definition applet.h:179
@ AppletIdleTimeDetectionExtension_ExtendedUnsafe
ExtendedUnsafe.
Definition applet.h:180
@ AppletIdleTimeDetectionExtension_None
No extension.
Definition applet.h:178
Result appletApplicationGetDesirableUids(AppletApplication *a, AccountUid *uids, s32 count, s32 *total_out)
Gets an array of userIds for the Application DesirableUids.
Result appletWriteThemeStorage(const void *buffer, size_t size, u64 offset)
Writes the ThemeStorage for the current applet.
Result appletPushInteractiveOutData(AppletStorage *s)
Pushes a storage for current-LibraryApplet Interactive output.
Service * appletGetServiceSession_LibraryAppletSelfAccessor(void)
Gets the Service object for ILibraryAppletSelfAccessor. Only initialized with AppletType_LibraryApple...
Result appletCreateHandleStorage(AppletStorage *s, s64 inval, Handle handle)
Creates a HandleStorage.
Result appletSetHandlingHomeButtonShortPressedEnabled(bool flag)
Sets HandlingHomeButtonShortPressedEnabled.
Result appletTakeScreenShotOfOwnLayer(bool flag, AppletCaptureSharedBuffer captureBuf)
Takes a screenshot of the current applet Layer into the specified CaptureSharedBuffer.
AppletType
AppletType.
Definition applet.h:23
AppletCaptureSharedBuffer
CaptureSharedBuffer for the IDisplayController commands.
Definition applet.h:196
@ AppletCaptureSharedBuffer_LastForeground
LastForeground.
Definition applet.h:198
@ AppletCaptureSharedBuffer_CallerApplet
CallerApplet.
Definition applet.h:199
@ AppletCaptureSharedBuffer_LastApplication
LastApplication.
Definition applet.h:197
Result appletQueryApplicationPlayStatisticsByUid(AccountUid uid, PdmApplicationPlayStatistics *stats, const u64 *application_ids, s32 count, s32 *total_out)
Same as appletQueryApplicationPlayStatistics except this gets playstats specific to the input userId.
Result appletStorageWrite(AppletStorage *s, s64 offset, const void *buffer, size_t size)
Writes to a storage.
Result appletSetTvPowerStateMatchingMode(AppletTvPowerStateMatchingMode mode)
Sets the AppletTvPowerStateMatchingMode.
Result appletJumpToSubApplicationProgramForDevelopment(u64 application_id, const void *buffer, size_t size)
Launches the specified ApplicationId.
Result appletDisableSleepTillShutdown(void)
DisableSleepTillShutdown.
Result appletApplicationAreAnyLibraryAppletsLeft(AppletApplication *a, bool *out)
AreAnyLibraryAppletsLeft which were created by the Application.
Result appletSetCpuBoostMode(ApmCpuBoostMode mode)
Sets the ApmCpuBoostMode.
Result appletCancelCpuBoostMode(void)
CancelCpuBoostMode.
Result appletIsForceTerminateApplicationDisabledForDebug(bool *out)
IsForceTerminateApplicationDisabledForDebug.
void appletHook(AppletHookCookie *cookie, AppletHookFn callback, void *param)
Sets up an applet status hook.
AppletWindowOriginMode
WindowOriginMode.
Definition applet.h:203
@ AppletWindowOriginMode_UpperLeft
UpperLeft.
Definition applet.h:205
@ AppletWindowOriginMode_LowerLeft
LowerLeft.
Definition applet.h:204
Result appletHolderPopInteractiveOutData(AppletHolder *h, AppletStorage *s)
Pops a storage from LibraryApplet Interactive output.
Result appletPerformSystemButtonPressingIfInFocus(AppletSystemButtonType type)
Perform SystemButtonPressing with the specified AppletSystemButtonType.
Result appletGetDesiredLanguage(u64 *LanguageCode)
Gets the DesiredLanguage for the current host application control.nacp.
Result appletPushToGeneralChannel(AppletStorage *s)
Pushes a storage to the general channel.
Result appletUnlockForeground(void)
UnlockForeground.
Result appletGetGpuErrorDetectedSystemEvent(Event *out_event)
Gets an Event which is signaled for GpuErrorDetected.
Result appletGetCallerAppletCaptureImageEx(void *buffer, size_t size, bool *flag)
Gets the CallerApplet CaptureImage.
AppletFocusHandlingMode
FocusHandlingMode.
Definition applet.h:74
@ AppletFocusHandlingMode_AlwaysSuspend
Always suspend when out of focus, regardless of the reason.
Definition applet.h:78
@ AppletFocusHandlingMode_SuspendHomeSleepNotify
Suspend only when HOME menu is open / console is sleeping but still receive OnFocusState hook.
Definition applet.h:77
@ AppletFocusHandlingMode_NoSuspend
Don't suspend when out of focus.
Definition applet.h:76
@ AppletFocusHandlingMode_Max
Number of focus handling modes.
Definition applet.h:80
@ AppletFocusHandlingMode_SuspendHomeSleep
Suspend only when HOME menu is open / console is sleeping (default).
Definition applet.h:75
Result appletApplicationCheckRightsEnvironmentAvailable(AppletApplication *a, bool *out)
CheckRightsEnvironmentAvailable.
static Event * appletHolderGetExitEvent(AppletHolder *h)
Gets the LibraryApplet StateChangedEvent.
Definition applet.h:1258
Result appletFriendInvitationClearApplicationParameter(void)
Clears the StorageChannel/saved-ApplicationId used by appletFriendInvitationSetApplicationParameter.
Service * appletGetServiceSession_AppletCommonFunctions(void)
Gets the Service object for IAppletCommonFunctions. Only initialized with AppletType_SystemApplet,...
Service * appletGetServiceSession_DisplayController(void)
Gets the Service object for IDisplayController.
Result appletCreateStorage(AppletStorage *s, s64 size)
Creates a storage.
Result appletSetApplicationMemoryReservation(u64 val)
SetApplicationMemoryReservation.
Result appletGetApplicationIdForLogo(u64 *application_id)
Gets the ApplicationId for displaying the logo screen during application launch.
Result appletSetRestartMessageEnabled(bool flag)
Sets whether AppletMessage_Resume is enabled.
Result appletUpdateCallerAppletCaptureImage(void)
Update the CallerApplet CaptureImage.
Result appletPrepareForJit(void)
Launches the jit-sysmodule when it was not previously launched by this cmd.
Result appletIsVrModeEnabled(bool *out)
Gets whether VrMode is enabled.
Result appletGetLastApplicationCaptureImageEx(void *buffer, size_t size, bool *flag)
Gets the LastApplication CaptureImage.
Result appletApplicationRestartApplicationTimer(AppletApplication *a)
RestartApplicationTimer.
AppletId
AppletId.
Definition applet.h:91
@ AppletId_LibraryAppletAuth
0100000000001001 "auth"
Definition applet.h:97
@ AppletId_LibraryAppletDataErase
0100000000001004 "dataErase"
Definition applet.h:100
@ AppletId_LibraryAppletShop
010000000000100B "LibAppletShop" ShopN applet
Definition applet.h:107
@ AppletId_SystemAppletMenu
0100000000001000 "qlaunch" (SystemAppletMenu)
Definition applet.h:95
@ AppletId_None
None.
Definition applet.h:92
@ AppletId_LibraryAppletPhotoViewer
010000000000100D "photoViewer"
Definition applet.h:108
@ AppletId_LibraryAppletMyPage
0100000000001013 "myPage"
Definition applet.h:113
@ AppletId_LibraryAppletSwkbd
0100000000001008 "swkbd"
Definition applet.h:104
@ AppletId_LibraryAppletCabinet
0100000000001002 "cabinet"
Definition applet.h:98
@ AppletId_LibraryAppletNetConnect
0100000000001006 "netConnect"
Definition applet.h:102
@ AppletId_LibraryAppletPlayerSelect
0100000000001007 "playerSelect"
Definition applet.h:103
@ AppletId_OverlayApplet
010000000000100C "overlayDisp"
Definition applet.h:94
@ AppletId_LibraryAppletSet
010000000000100E "set" (This applet is currently not present on retail devices.)
Definition applet.h:109
@ AppletId_LibraryAppletError
0100000000001005 "error"
Definition applet.h:101
@ AppletId_LibraryAppletOfflineWeb
010000000000100F "LibAppletOff" offlineWeb applet
Definition applet.h:110
@ AppletId_LibraryAppletWifiWebAuth
0100000000001011 "LibAppletAuth" wifiWebAuth applet
Definition applet.h:112
@ AppletId_LibraryAppletMiiEdit
0100000000001009 "miiEdit"
Definition applet.h:105
@ AppletId_LibraryAppletController
0100000000001003 "controller"
Definition applet.h:99
@ AppletId_LibraryAppletLoginShare
0100000000001010 "LibAppletLns" loginShare web-applet
Definition applet.h:111
@ AppletId_application
Application. Not valid for use with LibraryApplets.
Definition applet.h:93
@ AppletId_SystemApplication
0100000000001012 "starter" SystemApplication.
Definition applet.h:96
@ AppletId_LibraryAppletWeb
010000000000100A "LibAppletWeb" WebApplet applet
Definition applet.h:106
Result appletApplicationTerminateAllLibraryApplets(AppletApplication *a)
TerminateAllLibraryApplets which were created by the Application.
Event * appletGetMessageEvent(void)
Gets the event associated with notification messages.
Result appletHolderPushInteractiveInData(AppletHolder *h, AppletStorage *s)
Pushes a storage for LibraryApplet Interactive input.
Result appletBeginToObserveHidInputForDevelop(void)
Enables HID input for the OverlayApplet, without disabling input for the foreground applet.
Result appletStorageGetSize(AppletStorage *s, s64 *size)
Gets the size of the storage. This is not usable with HandleStorage, use appletStorageGetHandle or ap...
Result appletGetCallerAppletIdentityInfo(AppletIdentityInfo *info)
Gets the AppletIdentityInfo for the CallerApplet.
Result appletSetDelayTimeToAbortOnGpuError(u64 val)
SetDelayTimeToAbortOnGpuError.
Result appletSetTransparentVolumeRate(float val)
Sets the TransparentVolumeRate.
Result appletGetAppletResourceUserIdOfCallerApplet(u64 *out)
Gets the AppletResourceUserId of the CallerApplet.
AppletOperationMode
OperationMode.
Definition applet.h:34
@ AppletOperationMode_Handheld
Handheld.
Definition applet.h:35
@ AppletOperationMode_Console
Console (Docked / TV-mode)
Definition applet.h:36
Result appletGetSystemSharedLayerHandle(u64 *SharedBufferHandle, u64 *SharedLayerHandle)
Gets the System SharedBufferHandle and SharedLayerHandle.
Result appletExecuteProgram(s32 programIndex, const void *buffer, size_t size)
Launches Application {current_ApplicationId}+programIndex.
Result appletSetManagedDisplayLayerSeparationMode(u32 mode)
SetManagedDisplayLayerSeparationMode.
Result appletInvalidateTransitionLayer(void)
InvalidateTransitionLayer.
Result appletApplicationSetUsers(AppletApplication *a, const AccountUid *uids, s32 count, bool flag)
SetUsers for the Application.
Result appletCreateLibraryApplet(AppletHolder *h, AppletId id, LibAppletMode mode)
Creates a LibraryApplet.
Result appletGetOperationModeSystemInfo(u32 *info)
Gets the OperationModeSystemInfo.
Result appletUpdateDefaultDisplayResolution(void)
UpdateDefaultDisplayResolution.
void appletExit(void)
Exit applet, called automatically during app exit.
Result appletGpuErrorHandlerGetManualGpuErrorInfo(AppletGpuErrorHandler *g, void *buffer, size_t size, u64 *out)
GetManualGpuErrorInfo.
void appletUnhook(AppletHookCookie *cookie)
Removes an applet status hook.
AppletProgramSpecifyKind
ProgramSpecifyKind for the ExecuteProgram cmd. Controls the type of the u64 passed to the ExecuteProg...
Definition applet.h:209
@ AppletProgramSpecifyKind_ExecuteProgram
u8 ProgramIndex.
Definition applet.h:210
@ AppletProgramSpecifyKind_RestartProgram
u64 = value 0.
Definition applet.h:212
@ AppletProgramSpecifyKind_JumpToSubApplicationProgramForDevelopment
u64 application_id. Only available when DebugMode is enabled.
Definition applet.h:211
Result appletApplicationGetApplicationLaunchRequestInfo(AppletApplication *a, AppletApplicationLaunchRequestInfo *out)
Gets the AppletApplicationLaunchRequestInfo for the Application.
Result appletApproveToDisplay(void)
Approve the display requested by AppletMessage_RequestToDisplay, see also appletSetHandlesRequestToDi...
Result appletApplicationGetApplicationLaunchProperty(AppletApplication *a, AppletApplicationLaunchProperty *out)
Gets the AppletApplicationLaunchProperty for the Application.
Result appletOpenMyGpuErrorHandler(AppletGpuErrorHandler *g)
Opens an AppletGpuErrorHandler.
Result appletReleaseLastForegroundCaptureSharedBuffer(void)
Release the LastForeground CaptureSharedBuffer.
Result appletGetReaderLockAccessorEx(AppletLockAccessor *a, u32 inval)
Gets a Reader AppletLockAccessor.
void appletLockAccessorClose(AppletLockAccessor *a)
Closes a LockAccessor.
Result appletRequestExitToSelf(void)
Exits the current applet.
Result appletGetLaunchStorageInfoForDebug(NcmStorageId *app_storageId, NcmStorageId *update_storageId)
Gets the LaunchStorageInfo.
Result appletRequestLaunchApplicationWithUserAndArgumentForDebug(u64 application_id, const AccountUid *uids, s32 total_uids, bool flag, const void *buffer, size_t size)
Requests to launch the specified Application, with the specified users.
bool appletApplicationActive(AppletApplication *a)
Returns whether the AppletApplication object was initialized.
Result appletPopFromGeneralChannel(AppletStorage *s)
Pops a storage from the general channel.
Result appletFriendInvitationSetApplicationParameter(AppletStorage *s, u64 application_id)
Clears a StorageChannel, pushes the input storage there, and writes the ApplicationId into state.
Result appletStorageRead(AppletStorage *s, s64 offset, void *buffer, size_t size)
Reads from a storage.
Result appletSetWirelessPriorityMode(AppletWirelessPriorityMode mode)
Sets the WirelessPriorityMode.
Result appletLeaveFatalSection(void)
Leave FatalSection.
AppletMessage
AppletMessage, for appletGetMessage. See also AppletHookType.
Definition applet.h:54
@ AppletMessage_PerformanceModeChanged
PerformanceMode changed.
Definition applet.h:59
@ AppletMessage_AlbumRecordingSaved
AlbumRecordingSaved.
Definition applet.h:63
@ AppletMessage_Resume
Current applet execution was resumed.
Definition applet.h:57
@ AppletMessage_OperationModeChanged
OperationMode changed.
Definition applet.h:58
@ AppletMessage_AlbumScreenShotTaken
Screenshot was taken.
Definition applet.h:62
@ AppletMessage_RequestToDisplay
Display requested, see appletApproveToDisplay.
Definition applet.h:60
@ AppletMessage_CaptureButtonShortPressed
Capture button was short-pressed.
Definition applet.h:61
@ AppletMessage_FocusStateChanged
FocusState changed.
Definition applet.h:56
@ AppletMessage_ExitRequest
Exit request.
Definition applet.h:55
Result appletPopExtraStorage(AppletStorage *s)
Pops a storage from current-LibraryApplet Extra input.
Result appletRestartProgram(const void *buffer, size_t size)
Relaunches the current Application.
Result appletGetNextReturnDestinationAppletIdentityInfo(AppletIdentityInfo *info)
Gets the AppletIdentityInfo for the NextReturnDestinationApplet.
Result appletOverrideAutoSleepTimeAndDimmingTime(s32 inval0, s32 inval1, s32 inval2, s32 inval3)
OverrideAutoSleepTimeAndDimmingTime.
Result appletLockAccessorUnlock(AppletLockAccessor *a)
Unlock a LockAccessor.
AppletThemeColorType
ThemeColorType.
Definition applet.h:145
Result appletApplicationRequestExitLibraryAppletOrTerminate(AppletApplication *a, u64 timeout)
Calls the same func as appletHolderRequestExitOrTerminate with the output IAppletAccessor from the Ge...
Result appletReleaseCallerAppletCaptureSharedBuffer(void)
Release the CallerApplet CaptureSharedBuffer.
Result appletBeginToWatchShortHomeButtonMessage(void)
Stops forwarding the input to the foreground app.
Result appletSetAppletGpuTimeSlice(s64 val)
Sets the AppletGpuTimeSlice.
AlbumImageOrientation
ImageOrientation.
Definition caps.h:12
AlbumReportOption
AlbumReportOption.
Definition caps.h:20
NcmStorageId
StorageId.
Definition ncm_types.h:12
PmBootMode
BootMode.
Definition pm.h:54
SetKeyboardLayout
KeyboardLayout.
Definition set.h:189
SetSysPlatformRegion
PlatformRegion. Other values not listed here should be handled as "Unknown".
Definition set.h:220
Account UserId.
Definition acc.h:25
Attributes for launching applications for Quest.
Definition applet.h:296
u32 unk_x4
See AppletApplicationAttribute::unk_x4.
Definition applet.h:298
float volume
[7.0.0+] See AppletApplicationAttribute::volume.
Definition applet.h:299
u32 unk_x0
See AppletApplicationAttribute::unk_x0.
Definition applet.h:297
ApplicationAttribute.
Definition applet.h:303
u32 unk_x0
Default is 0 for non-Quest. Only used when non-zero: unknown value in seconds.
Definition applet.h:304
u32 unk_x4
Default is 0 for non-Quest. Only used when non-zero: unknown value in seconds.
Definition applet.h:305
float volume
Audio volume. Must be in the range of 0.0f-1.0f. The default is 1.0f.
Definition applet.h:306
ApplicationLaunchProperty.
Definition applet.h:311
u8 app_storageId
NcmStorageId for the Application.
Definition applet.h:314
u8 update_storageId
NcmStorageId for the Application update.
Definition applet.h:315
u32 version
Application version.
Definition applet.h:313
u8 unk_xa
Unknown.
Definition applet.h:316
u64 application_id
ApplicationId.
Definition applet.h:312
u8 pad
Padding.
Definition applet.h:317
ApplicationLaunchRequestInfo.
Definition applet.h:321
u32 unk_x0
Unknown. The default is 0x0 with appletCreateSystemApplication, 0x3 with appletCreateApplication.
Definition applet.h:322
u32 unk_x4
Unknown. The default is 0x0 with appletCreateSystemApplication, 0x3 with appletCreateApplication.
Definition applet.h:323
IApplicationAccessor container.
Definition applet.h:252
AppletApplicationExitReason exitreason
Set by appletApplicationJoin using the output from cmd GetResult, see AppletApplicationExitReason.
Definition applet.h:255
Event StateChangedEvent
Output from GetAppletStateChangedEvent, autoclear=false.
Definition applet.h:254
Service s
IApplicationAccessor.
Definition applet.h:253
Used by appletInitialize with __nx_applet_AppletAttribute for cmd OpenLibraryAppletProxy (AppletType_...
Definition applet.h:264
u8 flag
Flag. When non-zero, two state fields are set to 1.
Definition applet.h:265
GpuErrorHandler.
Definition applet.h:259
Service s
IGpuErrorHandler.
Definition applet.h:260
LibraryApplet state.
Definition applet.h:241
u64 layer_handle
Output from GetIndirectLayerConsumerHandle on [2.0.0+].
Definition applet.h:246
LibAppletExitReason exitreason
Set by appletHolderJoin using the output from cmd GetResult, see LibAppletExitReason.
Definition applet.h:248
bool creating_self
When set, indicates that the LibraryApplet is creating itself.
Definition applet.h:247
Event StateChangedEvent
Output from GetAppletStateChangedEvent, autoclear=false.
Definition applet.h:243
Event PopInteractiveOutDataEvent
Output from GetPopInteractiveOutDataEvent, autoclear=false.
Definition applet.h:244
LibAppletMode mode
See ref LibAppletMode.
Definition applet.h:245
Service s
ILibraryAppletAccessor.
Definition applet.h:242
applet hook cookie.
Definition applet.h:222
void * param
Callback parameter.
Definition applet.h:225
AppletHookCookie * next
Next cookie.
Definition applet.h:223
AppletHookFn callback
Hook callback.
Definition applet.h:224
IdentityInfo.
Definition applet.h:289
u64 application_id
ApplicationId, only set with appletId == AppletId_application.
Definition applet.h:292
u32 pad
Padding.
Definition applet.h:291
AppletId appletId
AppletId
Definition applet.h:290
Cached info for the current LibraryApplet, from appletGetAppletInfo.
Definition applet.h:282
LibAppletInfo info
Output from appletGetLibraryAppletInfo.
Definition applet.h:283
bool caller_flag
Loaded from AppletProcessLaunchReason::flag, indicates that the below AppletHolder is initialized.
Definition applet.h:284
AppletHolder caller
AppletHolder for the CallingLibraryApplet, automatically closed by appletExit when needed.
Definition applet.h:285
LockAccessor.
Definition applet.h:229
Event event
Event from the GetEvent cmd, with autoclear=false.
Definition applet.h:231
Service s
ILockAccessor.
Definition applet.h:230
AppletProcessLaunchReason, from GetLaunchReason.
Definition applet.h:276
u8 flag
When non-zero, indicates that OpenCallingLibraryApplet should be used.
Definition applet.h:277
AppletResourceUsageInfo, from appletGetAppletResourceUsageInfo.
Definition applet.h:328
u32 counter2
Output from ns cmd GetRightsEnvironmentCountForDebug.
Definition applet.h:331
u32 counter1
Unknown counter.
Definition applet.h:330
u32 counter0
Unknown counter.
Definition applet.h:329
applet IStorage
Definition applet.h:235
Service s
IStorage.
Definition applet.h:236
TransferMemory tmem
TransferMemory.
Definition applet.h:237
Kernel-mode event structure.
Definition event.h:13
LibraryAppletInfo.
Definition applet.h:270
AppletId appletId
AppletId
Definition applet.h:271
LibAppletMode mode
LibAppletMode
Definition applet.h:272
ns ApplicationControlProperty
Definition nacp.h:34
ApplicationPlayStatistics.
Definition pdm.h:213
Service object structure.
Definition service.h:14
Transfer memory information structure.
Definition tmem.h:13
int64_t s64
64-bit signed integer.
Definition types.h:28
uint64_t u64
64-bit unsigned integer.
Definition types.h:22
uint8_t u8
8-bit unsigned integer.
Definition types.h:19
u32 Handle
Kernel object handle.
Definition types.h:43
u32 Result
Function error code result type.
Definition types.h:44
#define NX_CONSTEXPR
Flags a function as constexpr in C++14 and above; or as (always) inline otherwise.
Definition types.h:92
int32_t s32
32-bit signed integer.
Definition types.h:27
uint32_t u32
32-bit unsigned integer.
Definition types.h:21