mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-08-10 17:39:24 +02:00
Add prodinfo blank flag wrapper
This commit is contained in:
parent
8f2328975a
commit
5fe1dacee2
@ -101,6 +101,23 @@ static inline bool IsRcmBugPatched() {
|
|||||||
return rcm_bug_patched;
|
return rcm_bug_patched;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline Result GetShouldBlankProdInfo(bool *out) {
|
||||||
|
u64 tmp = 0;
|
||||||
|
Result rc = SmcGetConfig((SplConfigItem)65005, &tmp);
|
||||||
|
if (R_SUCCEEDED(rc)) {
|
||||||
|
*out = (tmp != 0);
|
||||||
|
}
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline bool ShouldBlankProdInfo() {
|
||||||
|
bool should_blank_prodinfo;
|
||||||
|
if (R_FAILED(GetShouldBlankProdInfo(&should_blank_prodinfo))) {
|
||||||
|
std::abort();
|
||||||
|
}
|
||||||
|
return should_blank_prodinfo;
|
||||||
|
}
|
||||||
|
|
||||||
HosRecursiveMutex &GetSmSessionMutex();
|
HosRecursiveMutex &GetSmSessionMutex();
|
||||||
HosRecursiveMutex &GetSmMitmSessionMutex();
|
HosRecursiveMutex &GetSmMitmSessionMutex();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user