mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-27 12:46:03 +00:00
use configuration of system_settings.ini
prioritize the configuration of system_settings.ini
This commit is contained in:
parent
a64fdce505
commit
ad812c8125
1 changed files with 3 additions and 7 deletions
|
@ -162,18 +162,14 @@ Result FsMitmService::OpenFileSystemWithId(Out<std::shared_ptr<IFileSystemInterf
|
|||
}
|
||||
|
||||
Result FsMitmService::OpenSaveDataFileSystem(Out<std::shared_ptr<IFileSystemInterface>> 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue