mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 00:12:03 +00:00
pm: Update to support 10.0.0
This commit is contained in:
parent
73552c86c3
commit
200d2df785
3 changed files with 17 additions and 0 deletions
|
@ -21,6 +21,7 @@ namespace ams::spl {
|
||||||
|
|
||||||
HardwareType GetHardwareType();
|
HardwareType GetHardwareType();
|
||||||
MemoryArrangement GetMemoryArrangement();
|
MemoryArrangement GetMemoryArrangement();
|
||||||
|
bool IsDisabledProgramVerification();
|
||||||
bool IsDevelopmentHardware();
|
bool IsDevelopmentHardware();
|
||||||
bool IsDevelopmentFunctionEnabled();
|
bool IsDevelopmentFunctionEnabled();
|
||||||
bool IsMariko();
|
bool IsMariko();
|
||||||
|
|
|
@ -41,6 +41,12 @@ namespace ams::spl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsDisabledProgramVerification() {
|
||||||
|
u64 val = 0;
|
||||||
|
R_ABORT_UNLESS(splGetConfig(SplConfigItem_DisableProgramVerification, &val));
|
||||||
|
return val != 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool IsDevelopmentHardware() {
|
bool IsDevelopmentHardware() {
|
||||||
bool is_dev_hardware;
|
bool is_dev_hardware;
|
||||||
R_ABORT_UNLESS(splIsDevelopment(&is_dev_hardware));
|
R_ABORT_UNLESS(splIsDevelopment(&is_dev_hardware));
|
||||||
|
|
|
@ -705,6 +705,16 @@ namespace ams::pm::impl {
|
||||||
Result NotifyBootFinished() {
|
Result NotifyBootFinished() {
|
||||||
static bool g_has_boot_finished = false;
|
static bool g_has_boot_finished = false;
|
||||||
if (!g_has_boot_finished) {
|
if (!g_has_boot_finished) {
|
||||||
|
/* Set program verification disabled, if we should. */
|
||||||
|
/* NOTE: Nintendo does not check the result of this. */
|
||||||
|
if (spl::IsDisabledProgramVerification()) {
|
||||||
|
if (hos::GetVersion() >= hos::Version_10_0_0) {
|
||||||
|
ldr::pm::SetEnabledProgramVerification(false);
|
||||||
|
} else {
|
||||||
|
fsprSetEnabledProgramVerification(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
boot2::LaunchPreSdCardBootProgramsAndBoot2();
|
boot2::LaunchPreSdCardBootProgramsAndBoot2();
|
||||||
g_has_boot_finished = true;
|
g_has_boot_finished = true;
|
||||||
os::SignalSystemEvent(std::addressof(g_boot_finished_event));
|
os::SignalSystemEvent(std::addressof(g_boot_finished_event));
|
||||||
|
|
Loading…
Reference in a new issue