Commit Graph

176 Commits

Author SHA1 Message Date
Ghabry
a215ae2da2 Add NX_ prefix to PACKED, NORETURN, IGNORE_ARG and DEPRECATED macros 2023-11-20 19:22:12 +01:00
Dave Murphy
8747689be1
gcc 13 fixes (#610) 2023-05-07 03:04:58 +01:00
Liam
2e2284109b applet: add appletGetMessageEvent 2023-04-08 17:22:26 +02:00
yellows8
75290f912e
applet: Updated for 15.0.0. Various fixes and added __nx_applet_init_timeout. 2022-11-01 14:27:32 -04:00
yellows8
ccec5bd36c
apm/applet: Updated names/docs.
Added AppletWindowOriginMode.
2020-12-15 11:14:35 -05:00
yellows8
d406db725d
applet: Added 11.0 cmds. 2020-12-14 15:32:54 -05:00
Michael Scire
e5ae43f4c2 results: use R_VALUE for comparisons 2020-12-01 02:26:26 +01:00
fincs
970d982e57
Add diagAbortWithResult, see details:
- This is a (weak/overridable) function meant to be called when the
  program encounters an unrecoverable error, but it's not fatal enough
  to bring down the entire system with it.
- The default implementation uses svcBreak, passing the result code
  in the user buffer.
- Replaced all usages of fatalThrow with diagAbortWithResult throughout
  the entire library.
2020-10-29 13:40:35 +01:00
yellows8
6620dfaa6f
applet: Added get-event funcs:
appletHolderGetExitEvent and expose appletHolderGetPopInteractiveOutDataEvent.
2020-06-24 10:35:30 -04:00
yellows8
1925e32c6d
applet: Added support for most of the [10.0.0+] cmds: appletCancelCpuBoostMode, appletActivateMigrationService, appletDeactivateMigrationService, appletCreateManagedDisplaySeparableLayer, appletSetManagedDisplayLayerSeparationMode, appletHolderPresetLibraryAppletGpuTimeSliceZero, appletRequestToSleep, appletApplicationRequestApplicationSoftReset, appletApplicationRestartApplicationTimer, appletSetApplicationMemoryReservation, appletShouldSetGpuTimeSliceManually, appletIsHealthWarningRequired, appletIsHomeButtonShortPressedBlocked. 2020-04-18 13:21:39 -04:00
yellows8
db14e06fb2
Added a sysver-check for appletOpenMainApplication, it was removed with [10.0.0+]. Added a required-sysver comment for ldrPmSetEnabledProgramVerification. 2020-04-16 13:54:44 -04:00
fincs
6535d6f871
Remove U64_MAX in favor of using UINT64_MAX 2020-03-16 16:21:33 +01:00
fincs
8421863c78
applet: appletSetFocusHandlingMode should only be used with Application 2020-03-10 17:42:00 +01:00
fincs
7e6ff7e486
Simplify appletGetAppletResourceUserId and related logic 2020-01-17 00:18:55 +01:00
yellows8
1bb1aef2f7
Only init/exit apm from applet with AppletType_Application. Closes #360. 2019-12-23 10:50:52 -05:00
yellows8
d25bcc486a
Properly fixed __nx_applet_exit_mode handling, previously appletExit() called by _appletExitProcess didn't run since refcount was already 0. Closes #355. 2019-12-14 11:52:40 -05:00
yellows8
15490b15f6
applet: Added support for using appletSetHandlingHomeButtonShortPressedEnabled with non-AppletType_OverlayApplet on [9.1.0+]. 2019-12-08 16:45:47 -05:00
yellows8
6900a0241c
applet/time/set: Added TimeSteadyClockTimePoint. Updated appletSetDesirableKeyboardLayout/appletGetDesirableKeyboardLayout for using TimeSteadyClockTimePoint.
* Added SetSysUserSelectorFlag, SetSysEulaVersionClockType, SetSysNotificationVolume, SetSysFriendPresenceOverlayPermission, SetSysPrimaryAlbumStorage, SetSysHandheldSleepPlan, SetSysConsoleSleepPlan, SetSysErrorReportSharePermission, SetKeyboardLayout, and SetChineseTraditionalInputMethod.

* Added SetBatteryLot, SetSysUserSelectorSettings, SetSysAccountSettings, SetSysEulaVersion, SetSysNotificationTime, SetSysNotificationSettings, SetSysAccountNotificationSettings, SetSysTvSettings, SetSysDataDeletionSettings, SetSysSleepSettings, SetSysInitialLaunchSettings, and SetSysRebootlessSystemUpdateVersion.

* Added setsysSetLanguageCode, setsysGetAccountSettings/setsysSetAccountSettings, setsysGetEulaVersions/setsysSetEulaVersions, setsysGetNotificationSettings/setsysSetNotificationSettings, setsysGetAccountNotificationSettings/setsysSetAccountNotificationSettings, setsysGetTvSettings/setsysSetTvSettings, setsysGetDataDeletionSettings/setsysSetDataDeletionSettings, setsysGetWirelessCertificationFileSize/setsysGetWirelessCertificationFile, setsysSetRegionCode, setsysGetPrimaryAlbumStorage/setsysSetPrimaryAlbumStorage, setsysGetBatteryLot, setsysGetSleepSettings/setsysSetSleepSettings, setsysGetInitialLaunchSettings/setsysSetInitialLaunchSettings, setsysGetProductModel, setsysGetMiiAuthorId, setsysGetErrorReportSharePermission/setsysSetErrorReportSharePermission, setsysGetAppletLaunchFlags/setsysSetAppletLaunchFlags, setsysGetKeyboardLayout/setsysSetKeyboardLayout, setsysGetRebootlessSystemUpdateVersion, and setsysGetChineseTraditionalInputMethod/setsysSetChineseTraditionalInputMethod.
2019-12-06 21:13:43 -05:00
yellows8
c4bc7b24a0
Added type Uuid and use it where needed. Renamed the c field in NcmPlaceHolderId to uuid. Removed PACKED from WebWifiPageArg/WebWifiReturnValue. 2019-12-03 23:31:01 -05:00
yellows8
8216043ea1
applet: Fixed the prefix for *PushToFriendInvitationStorageChannel/*PushToNotificationStorageChannel. Added support for all [9.0.0+] IDebugFunctions cmds. Minor internal changes + improved docs. 2019-11-15 18:08:46 -05:00
yellows8
1e58385bd5
Added appletGetFriendInvitationStorageChannelEvent, appletTryPopFromFriendInvitationStorageChannel, appletGetNotificationStorageChannelEvent, and appletTryPopFromNotificationStorageChannel. Added appletPushToFriendInvitationStorageChannel/appletPushToNotificationStorageChannel. Added friendsGetFriendInvitationNotificationEvent/friendsTryPopFriendInvitationNotificationInfo. Added notif, for adding notifGetNotificationSystemEvent/notifTryPopNotifiedApplicationParameter. 2019-11-15 14:26:29 -05:00
yellows8
dda6194d0b
Added appletIsForceTerminateApplicationDisabledForDebug. Updated docs. 2019-11-14 11:34:41 -05:00
yellows8
c0115edca1
Added appletSetHealthWarningShowingState and appletGetHealthWarningDisappearedSystemEvent. 2019-11-13 23:41:43 -05:00
yellows8
d24f1ca611
Added appletSetInputDetectionPolicy and AppletInputDetectionPolicy. 2019-11-13 20:53:40 -05:00
yellows8
297e9d97a0
Added appletGetSettingsPlatformRegion/appletSetHdcpAuthenticationActivated and improved docs. 2019-11-13 20:07:26 -05:00
yellows8
d88f67fe30
Added appletPushToAppletBoundChannel and appletTryPopFromAppletBoundChannel. 2019-11-13 18:25:34 -05:00
yellows8
8fc57a4795
Added support for using appletSetTerminateResult via IAppletCommonFunctions, and for using appletGetLaunchStorageInfoForDebug/appletGetGpuErrorDetectedSystemEvent with AppletType_LibraryApplet, on [9.0.0+]. Moved these to a new section in the .h/.c. 2019-11-13 17:52:56 -05:00
yellows8
c40f8ecac6
Removed includes which are unneeded due to being included elsewhere, etc. Minor improvements. 2019-11-12 12:45:58 -05:00
yellows8
9888df18da
Moved most ncm types into ncm_types.h. Renamed FsStorageId to NcmStorageId, with updated names for some values (now located in ncm_types.h). Various improvements + improved docs. 2019-11-11 18:19:45 -05:00
yellows8
1f792cd92f
Various improvements/fixes and improved docs. Added nvGetServiceSession. Return an actual error when the value for determing which service to init is invalid, for services which use *ServiceType/AppletType. Improved cleanup handling. Fixed inverted logic in the spl cleanup define. 2019-10-31 22:53:42 -04:00
yellows8
4ab50e3752
Use official naming instead of 'title(ID)'. Use 'uid(s)' instead of 'userID(s)'. Updated various struct field names. Improved docs + minor other improvements. 2019-10-30 10:38:05 -04:00
yellows8
e833257b65
applet: Minor internal improvements. Updated param type for appletRequestLaunchApplicationWithUserAndArgumentForDebug. Clear IPC in-struct padding, improved bool handling, and use serviceAssumeDomain when closing Service objects outside of _appletCleanup. 2019-10-25 19:24:56 -04:00
fincs
4ab2384449
fatal: Rename functions/types to match official names more closely 2019-10-24 23:25:07 +02:00
fincs
47b0403333
Pass plain AccountUid inputs by value instead of by non-const pointer 2019-10-21 16:57:01 +02:00
yellows8
3a1459cf4c
applet: Updated for using AccountUid and improved docs. 2019-10-08 21:05:00 -04:00
yellows8
ae582d8cb4
Changed the output of appletGetOperationMode/appletGetPerformanceMode to enums AppletOperationMode/ApmPerformanceMode. 2019-10-06 19:05:58 -04:00
yellows8
62192cac0a
Removed sm.h include from applet.c which is no longer needed. 2019-10-03 21:48:36 -04:00
yellows8
c4b1a68269
applet: Added macros in applet.c for defining cmds' impl in a single line, using the ipc helper funcs. Some cmds which previously didn't have NotInitialized checks now do so via the macros. Fixed the order of some cmds. 2019-10-03 20:03:45 -04:00
yellows8
9916fe93a0
applet: Updated for new-ipc, various internal improvements, and changed the transfer_size param type for appletReadThemeStorage to u64. 2019-10-02 19:02:20 -04:00
fincs
6ad0042147
Introduce new IPC interface wrapper code, see details:
- Service object moved away from sm.h and into its own file (sf/service.h)
- Service object completely redesigned, but a (mostly)
  backwards compatible API was kept
- New low level HIPC request/response code
- New CMIF client-oriented code
- New service IPC dispatch functions
- Pointer buffer size automatically retrieved for all sessions
- Removed previous manual pointer buffer size query code
- SM rewritten with new IPC code
- All other services are still pending IPC rewrite
2019-09-19 03:50:28 +02:00
yellows8
318f2b33b6
Added appletCreateMovieMaker. Added support for grc MovieMaker. Improved grc docs. 2019-08-28 18:41:43 -04:00
yellows8
0569ca7588
Updated docs. Use proper doxygen sections instead of plain comments, and use same style for all system-versions in applet docs. Internal applet.c improvements. Added appletGetServiceSession_*() funcs. 2019-08-26 10:40:24 -04:00
yellows8
86ab999ee2
Added grc, for trimming videos. Added appletCreateGameMovieTrimmer, appletReserveResourceForMovieOperation, and appletUnreserveResourceForMovieOperation. Added structs CapsAlbumFileDateTime/CapsAlbumEntryId and updated CapsAlbumEntry. 2019-08-24 10:55:43 -04:00
yellows8
7c18df6d4c
Added appletRequestFlushGamePlayingMovieForDebug. 2019-08-22 10:27:49 -04:00
yellows8
c7cab0351c
Added appletExecuteProgram, appletJumpToSubApplicationProgramForDevelopment, appletRestartProgram, and appletGetPreviousProgramIndex. Added AppletProgramSpecifyKind. 2019-08-21 17:38:35 -04:00
yellows8
79e6db16be
Added appletPrepareForJit. 2019-08-21 12:14:29 -04:00
yellows8
c3b32581c9
Added appletGetLaunchStorageInfoForDebug. 2019-08-20 18:16:45 -04:00
yellows8
487aed9a59
Added appletTerminateAllLibraryApplets/appletAreAnyLibraryAppletsLeft and appletApplicationTerminateAllLibraryApplets/appletApplicationAreAnyLibraryAppletsLeft. 2019-08-20 14:33:56 -04:00
yellows8
e069da4320
Added appletHolderTerminate. 2019-08-20 11:44:55 -04:00
yellows8
0f8e18573d
Added appletLaunchDevMenu. 2019-08-20 11:19:49 -04:00