Only inject fs_mitm when overlay files are actually present for the title

This commit is contained in:
roothorick 2018-08-16 19:20:16 -05:00 committed by tumGER
parent 187691f79c
commit 095c30d25e

View file

@ -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 {