mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-27 13:32:43 +02:00
add IsApplicationTid helper
This commit is contained in:
parent
fb12edcbba
commit
a2c74f8cd5
@ -52,3 +52,9 @@ static inline void CopyFromIram(void *dst_addr, uintptr_t iram_addr, size_t size
|
||||
args.X[4] = 0; /* 0 = Read */
|
||||
svcCallSecureMonitor(&args);
|
||||
}
|
||||
|
||||
static inline bool IsApplicationTid(u64 title_id) {
|
||||
constexpr u64 application_tid_min = 0x0100000000010000ul;
|
||||
constexpr u64 application_tid_max = 0x01FFFFFFFFFFFFFFul;
|
||||
return application_tid_min <= title_id && title_id <= application_tid_max;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user