diff --git a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp index 2f850d938..06cc873da 100644 --- a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp +++ b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp @@ -162,18 +162,14 @@ Result FsMitmService::OpenFileSystemWithId(Out> out_fs, u8 space_id, FsSave save_struct) { - const bool has_redirect_save_flags = Utils::HasFlag(this->title_id, "redirect_save"); bool should_redirect_saves = false; + const bool has_redirect_save_flags = Utils::HasFlag(this->title_id, "redirect_save"); if (R_FAILED(Utils::GetSettingsItemBooleanValue("atmosphere", "fsmitm_redirect_saves_to_sd", &should_redirect_saves))) { return ResultAtmosphereMitmShouldForwardToSession; } - //check if flag exist - if (!has_redirect_save_flags) { - should_redirect_saves = false; - } - /* For now, until we're sure this is robust, only intercept normal savedata. */ - if (!should_redirect_saves || save_struct.SaveDataType != FsSaveDataType_SaveData) { + /* For now, until we're sure this is robust, only intercept normal savedata , checkk if flag exist*/ + if (!has_redirect_save_flags || !should_redirect_saves || save_struct.SaveDataType != FsSaveDataType_SaveData) { return ResultAtmosphereMitmShouldForwardToSession; }