mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-23 13:04:50 +00:00
Merge b9603c13d3
into 9ae62a27dd
This commit is contained in:
commit
ad441ffcda
1 changed files with 8 additions and 1 deletions
|
@ -38,7 +38,14 @@ class FsMitMService : public IMitMServiceObject {
|
|||
}
|
||||
|
||||
static bool should_mitm(u64 pid, u64 tid) {
|
||||
return tid >= 0x0100000000010000ULL || Utils::HasSdMitMFlag(tid);
|
||||
if(!(tid >= 0x0100000000010000ULL || Utils::HasSdMitMFlag(tid))) return false;
|
||||
|
||||
FsDir tst;
|
||||
char slash = '/';
|
||||
bool ret = R_SUCCEEDED(Utils::OpenSdDirForAtmosphere(tid, &slash, &tst));
|
||||
if(!ret) return false;
|
||||
fsDirClose(&tst);
|
||||
return true;
|
||||
}
|
||||
|
||||
FsMitMService *clone() override {
|
||||
|
|
Loading…
Add table
Reference in a new issue