mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 18:12:14 +02:00
ldr: add ldrPmSetEnabledProgramVerification
This commit is contained in:
parent
b0e1a70ab6
commit
239a1ef19b
@ -66,3 +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);
|
||||
|
@ -92,3 +92,11 @@ Result ldrPmPinProgram(const NcmProgramLocation *loc, u64 *out_pin_id) {
|
||||
Result ldrPmUnpinProgram(u64 pin_id) {
|
||||
return serviceDispatchIn(&g_ldrPmSrv, 3, pin_id);
|
||||
}
|
||||
|
||||
Result ldrPmSetEnabledProgramVerification(bool enabled) {
|
||||
if(hosversionBefore(10,0,0))
|
||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||
|
||||
const u8 in = enabled != 0;
|
||||
return serviceDispatchIn(&g_ldrPmSrv, 4, in);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user