mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-05 09:02:15 +02:00
Only inject fs_mitm when overlay files are actually present for the title
This commit is contained in:
parent
187691f79c
commit
095c30d25e
@ -38,7 +38,14 @@ class FsMitMService : public IMitMServiceObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool should_mitm(u64 pid, u64 tid) {
|
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 {
|
FsMitMService *clone() override {
|
||||||
|
Loading…
Reference in New Issue
Block a user