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.

This commit is contained in:
yellows8 2019-10-03 20:03:45 -04:00
parent 9eb4bfca20
commit c4b1a68269
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 211 additions and 1096 deletions

View File

@ -739,13 +739,6 @@ Result appletGetCurrentIlluminanceEx(bool *bOverLimit, float *fLux);
*/
Result appletSetWirelessPriorityMode(AppletWirelessPriorityMode mode);
/**
* @brief Sets whether ::AppletMessage_AlbumImageTaken is enabled.
* @note Only available with [7.0.0+].
* @param[in] flag Whether to enable the notification.
*/
Result appletSetAlbumImageTakenNotificationEnabled(bool flag);
/**
* @brief Gets the total time in nanoseconds that the current process was actively running (not suspended), relative to when \ref appletInitialize was last used.
* @note Only available with [6.0.0+].
@ -753,6 +746,13 @@ Result appletSetAlbumImageTakenNotificationEnabled(bool flag);
*/
Result appletGetProgramTotalActiveTime(u64 *activeTime);
/**
* @brief Sets whether ::AppletMessage_AlbumImageTaken is enabled.
* @note Only available with [7.0.0+].
* @param[in] flag Whether to enable the notification.
*/
Result appletSetAlbumImageTakenNotificationEnabled(bool flag);
/**
* @brief Sets the Application AlbumUserData.
* @note Only available with [8.0.0+].

File diff suppressed because it is too large Load Diff