1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-23 10:52:13 +00:00

Add files via upload

This commit is contained in:
Kronos2308 2019-05-17 08:29:38 +01:00 committed by GitHub
parent 674175e1c6
commit d0d7772f98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,13 +162,13 @@ 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_sd_save_flags = Utils::HasFlag(this->title_id, "sd_save");
const bool has_redirect_save_flags = Utils::HasFlag(this->title_id, "redirect_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) {
//check if flag exist
if (!has_redirect_save_flags) {
should_redirect_saves = false;
}