Added a sysver-check for appletOpenMainApplication, it was removed with [10.0.0+]. Added a required-sysver comment for ldrPmSetEnabledProgramVerification.

This commit is contained in:
yellows8 2020-04-16 13:54:44 -04:00
parent ab715a9a49
commit db14e06fb2
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
3 changed files with 9 additions and 2 deletions

View File

@ -2284,6 +2284,7 @@ Result appletGetHomeButtonDoubleClickEnabled(bool *out);
/**
* @brief Open an \ref AppletApplication for the currently running Application.
* @note Should not be used when no Application is running.
* @note Only available on [1.0.0-9.2.0].
* @param[out] a \ref AppletApplication
*/
Result appletOpenMainApplication(AppletApplication *a);

View File

@ -66,4 +66,4 @@ Result ldrPmCreateProcess(u64 pin_id, u32 flags, Handle reslimit_h, Handle *out_
Result ldrPmGetProgramInfo(const NcmProgramLocation *loc, LoaderProgramInfo *out_program_info);
Result ldrPmPinProgram(const NcmProgramLocation *loc, u64 *out_pin_id);
Result ldrPmUnpinProgram(u64 pin_id);
Result ldrPmSetEnabledProgramVerification(bool enabled);
Result ldrPmSetEnabledProgramVerification(bool enabled); ///< [10.0.0+]

View File

@ -2726,7 +2726,13 @@ IPC_MAKE_CMD_IMPL_HOSVER(Result appletGetHomeButtonDoubleClickEnabled(bool *out)
// IDebugFunctions
IPC_MAKE_CMD_IMPL(Result appletOpenMainApplication(AppletApplication *a), &g_appletIDebugFunctions, 1, _appletApplicationCreate, a)
Result appletOpenMainApplication(AppletApplication *a) {
if (hosversionAtLeast(10,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _appletApplicationCreate(&g_appletIDebugFunctions, a, 1);
}
IPC_MAKE_CMD_IMPL(Result appletPerformSystemButtonPressing(AppletSystemButtonType type), &g_appletIDebugFunctions, 10, _appletCmdInU32NoOut, type)
IPC_MAKE_CMD_IMPL(Result appletInvalidateTransitionLayer(void), &g_appletIDebugFunctions, 20, _appletCmdNoIO)