mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-30 22:45:17 -04:00
ams: globally prefer R_RETURN to return for ams::Result
This commit is contained in:
parent
dd78ede99f
commit
bbf22b4c60
325 changed files with 1955 additions and 1993 deletions
|
@ -392,7 +392,7 @@ namespace ams::fssystem {
|
|||
AMS_ASSERT(0 <= index && index < NcaHeader::FsCountMax);
|
||||
|
||||
const s64 offset = sizeof(NcaHeader) + sizeof(NcaFsHeader) * index;
|
||||
return m_header_storage->Read(offset, dst, sizeof(NcaFsHeader));
|
||||
R_RETURN(m_header_storage->Read(offset, dst, sizeof(NcaFsHeader)));
|
||||
}
|
||||
|
||||
bool NcaReader::GetHeaderSign1Valid() const {
|
||||
|
@ -506,7 +506,7 @@ namespace ams::fssystem {
|
|||
AMS_ASSERT(out != nullptr);
|
||||
AMS_ASSERT(this->IsInitialized());
|
||||
|
||||
return m_data.GetHashTargetOffset(out);
|
||||
R_RETURN(m_data.GetHashTargetOffset(out));
|
||||
}
|
||||
|
||||
bool NcaFsHeaderReader::ExistsSparseLayer() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue