strat: revise fs unsupported operation results, add overflow utils
This commit is contained in:
1 parent
ba4e7c5866
commit
11e4bed199
31 files changed
+265
-142
No files matched your search
+2
-2
@@ -332,7 +332,7 @@ namespace ams::fssystem {
|
||||
case fs::OperationId::Invalidate:
|
||||
{
|
||||
/* Only allow cache invalidation for RomFs. */
|
||||
R_UNLESS(m_storage_type != fs::StorageType_SaveData, fs::ResultUnsupportedOperationInIntegrityVerificationStorageB());
|
||||
R_UNLESS(m_storage_type != fs::StorageType_SaveData, fs::ResultUnsupportedOperateRangeForNonSaveDataIntegrityVerificationStorage());
|
||||
|
||||
|
||||
/* Operate on our storages. */
|
||||
@@ -357,7 +357,7 @@ namespace ams::fssystem {
|
||||
return ResultSuccess();
|
||||
}
|
||||
default:
|
||||
return fs::ResultUnsupportedOperationInIntegrityVerificationStorageC();
|
||||
return fs::ResultUnsupportedOperateRangeForIntegrityVerificationStorage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user