fs.mitm: Allow for disabling mitm for a title via flag.

This commit is contained in:
Michael Scire
2018-10-16 20:41:19 -07:00
parent f10ae4d96f
commit 4944986814
3 changed files with 21 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ class FsMitMService : public IMitMServiceObject {
}
static bool should_mitm(u64 pid, u64 tid) {
if (Utils::HasSdDisableMitMFlag(tid)) {
return false;
}
return (tid >= 0x0100000000010000ULL || Utils::HasSdMitMFlag(tid)) && Utils::HasOverrideButton(tid);
}