mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-25 20:24:21 -04:00
boot: Implement DetectBootReason
This commit is contained in:
parent
fe0d41623c
commit
93fb060fac
9 changed files with 317 additions and 2 deletions
|
@ -23,3 +23,11 @@ HardwareType Boot::GetHardwareType() {
|
|||
}
|
||||
return static_cast<HardwareType>(out_val);
|
||||
}
|
||||
|
||||
bool Boot::IsRecoveryBoot() {
|
||||
u64 val = 0;
|
||||
if (R_FAILED(splGetConfig(SplConfigItem_IsRecoveryBoot, &val))) {
|
||||
std::abort();
|
||||
}
|
||||
return val != 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue