mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-06 04:01:44 +00:00
Change mitm conditions due to sleep mode issue
This commit is contained in:
parent
a07e37121d
commit
dd255df90d
1 changed files with 9 additions and 2 deletions
|
@ -41,8 +41,15 @@ class FsMitmService : public IMitmServiceObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ShouldMitm(u64 pid, u64 tid) {
|
static bool ShouldMitm(u64 pid, u64 tid) {
|
||||||
/* fs.mitm should always mitm everything that's not a kip. */
|
static std::atomic_bool has_launched_qlaunch = false;
|
||||||
return pid >= 0x50;
|
|
||||||
|
/* TODO: intercepting everything seems to cause issues with sleep mode, for some reason. */
|
||||||
|
/* Figure out why, and address it. */
|
||||||
|
if (tid == 0x0100000000001000ULL) {
|
||||||
|
has_launched_qlaunch = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return has_launched_qlaunch || tid == 0x010000000000001FULL || tid >= 0x0100000000010000ULL || Utils::HasSdMitMFlag(tid);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void PostProcess(IMitmServiceObject *obj, IpcResponseContext *ctx);
|
static void PostProcess(IMitmServiceObject *obj, IpcResponseContext *ctx);
|
||||||
|
|
Loading…
Reference in a new issue