ams: use R_SUCCEED, R_THROW globally

This commit is contained in:
Michael Scire 2022-03-26 00:14:36 -07:00
parent e5b1739f65
commit dd78ede99f
370 changed files with 2107 additions and 2107 deletions

View file

@ -30,7 +30,7 @@ namespace ams::fssystem {
/* Verify the magic is the current one. */
R_UNLESS(magic == NcaHeader::Magic3, fs::ResultInvalidNcaSignature());
return ResultSuccess();
R_SUCCEED();
}
}
@ -176,7 +176,7 @@ namespace ams::fssystem {
m_header_storage = std::move(work_header_storage);
m_body_storage = std::move(base_storage);
return ResultSuccess();
R_SUCCEED();
}
std::shared_ptr<fs::IStorage> NcaReader::GetSharedBodyStorage() {
@ -435,7 +435,7 @@ namespace ams::fssystem {
/* Set our index. */
m_fs_index = index;
return ResultSuccess();
R_SUCCEED();
}
void NcaFsHeaderReader::GetRawData(void *dst, size_t dst_size) const {