mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-29 06:22:39 +02:00
libstrat: add IsEmunand() helper
This commit is contained in:
parent
5fe1dacee2
commit
44f52b445e
@ -118,6 +118,23 @@ static inline bool ShouldBlankProdInfo() {
|
|||||||
return should_blank_prodinfo;
|
return should_blank_prodinfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline Result GetEmunandConfig(u64 *out) {
|
||||||
|
u64 tmp = 0;
|
||||||
|
Result rc = SmcGetConfig((SplConfigItem)65100, &tmp);
|
||||||
|
if (R_SUCCEEDED(rc)) {
|
||||||
|
*out = tmp;
|
||||||
|
}
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline bool IsEmunand() {
|
||||||
|
u64 emunand;
|
||||||
|
if (R_FAILED(GetEmunandConfig(&emunand))) {
|
||||||
|
std::abort();
|
||||||
|
}
|
||||||
|
return emunand != 0;
|
||||||
|
}
|
||||||
|
|
||||||
HosRecursiveMutex &GetSmSessionMutex();
|
HosRecursiveMutex &GetSmSessionMutex();
|
||||||
HosRecursiveMutex &GetSmMitmSessionMutex();
|
HosRecursiveMutex &GetSmMitmSessionMutex();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user