pm: NotifyBootFinished no longer changes program verification
This commit is contained in:
@@ -480,13 +480,16 @@ namespace ams::pm::impl {
|
|||||||
Result NotifyBootFinished() {
|
Result NotifyBootFinished() {
|
||||||
AMS_FUNCTION_LOCAL_STATIC_CONSTINIT(bool, s_has_boot_finished, false);
|
AMS_FUNCTION_LOCAL_STATIC_CONSTINIT(bool, s_has_boot_finished, false);
|
||||||
if (!s_has_boot_finished) {
|
if (!s_has_boot_finished) {
|
||||||
/* Set program verification disabled, if we should. */
|
/* 23.0.0+ removed this and all usage of spl from the pm sysmodule, both in normal and safe mode FIRM. */
|
||||||
/* NOTE: Nintendo does not check the result of this. */
|
if (hos::GetVersion() < hos::Version_23_0_0) {
|
||||||
if (spl::IsDisabledProgramVerification()) {
|
/* Set program verification disabled, if we should. */
|
||||||
if (hos::GetVersion() >= hos::Version_10_0_0) {
|
/* NOTE: Nintendo does not check the result of this. */
|
||||||
ldr::pm::SetEnabledProgramVerification(false);
|
if (spl::IsDisabledProgramVerification()) {
|
||||||
} else {
|
if (hos::GetVersion() >= hos::Version_10_0_0) {
|
||||||
fsprSetEnabledProgramVerification(false);
|
ldr::pm::SetEnabledProgramVerification(false);
|
||||||
|
} else {
|
||||||
|
fsprSetEnabledProgramVerification(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user