From 674175e1c6d0c6429cd5f76e5e75bea959c278a3 Mon Sep 17 00:00:00 2001 From: Kronos2308 <36446521+Kronos2308@users.noreply.github.com> Date: Fri, 17 May 2019 03:28:24 +0100 Subject: [PATCH] simple sd_save flag something that allows you to decide which title to redirect games saves and which does not --- stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp index 0421ffb00..57a65af4c 100644 --- a/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp +++ b/stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp @@ -162,10 +162,15 @@ Result FsMitmService::OpenFileSystemWithId(Out> out_fs, u8 space_id, FsSave save_struct) { + const bool has_sd_save_flags = Utils::HasFlag(this->title_id, "sd_save"); bool should_redirect_saves = false; if (R_FAILED(Utils::GetSettingsItemBooleanValue("atmosphere", "fsmitm_redirect_saves_to_sd", &should_redirect_saves))) { return ResultAtmosphereMitmShouldForwardToSession; } + + if (!has_sd_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) { @@ -430,4 +435,4 @@ Result FsMitmService::OpenDataStorageByDataId(Out