Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Only inject fs_mitm when overlay files are actually present for the t…

…itle
  • Loading branch information...
roothorick authored and tumGER committed Aug 17, 2018
1 parent 0c8e1a9 commit c95ab803f3dd843009e2a6d3dddc2bcc06d43d6e
Showing with 8 additions and 1 deletion.
  1. +8 −1 stratosphere/fs_mitm/source/fsmitm_service.hpp
@@ -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 {

0 comments on commit c95ab80

Please sign in to comment.
You can’t perform that action at this time.