From ad812c81259c3d186b7682df3891f9665668d3d3 Mon Sep 17 00:00:00 2001 From: Kronos2308 <36446521+Kronos2308@users.noreply.github.com> Date: Fri, 17 May 2019 09:28:46 +0100 Subject: [PATCH] use configuration of system_settings.ini prioritize the configuration of system_settings.ini --- .../ams_mitm/source/fs_mitm/fsmitm_service.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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; }