mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 05:55:16 -04:00
ams: use R_SUCCEED, R_THROW globally
This commit is contained in:
parent
e5b1739f65
commit
dd78ede99f
370 changed files with 2107 additions and 2107 deletions
|
@ -107,7 +107,7 @@ namespace ams::fssystem {
|
|||
}
|
||||
|
||||
m_index = static_cast<s32>(pos - m_start) - 1;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -126,7 +126,7 @@ namespace ams::fssystem {
|
|||
R_UNLESS(this->magic == Magic, fs::ResultInvalidBucketTreeSignature());
|
||||
R_UNLESS(this->entry_count >= 0, fs::ResultInvalidBucketTreeEntryCount());
|
||||
R_UNLESS(this->version <= Version, fs::ResultUnsupportedVersion());
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::NodeHeader::Verify(s32 node_index, size_t node_size, size_t entry_size) const {
|
||||
|
@ -137,7 +137,7 @@ namespace ams::fssystem {
|
|||
R_UNLESS(this->count > 0 && static_cast<size_t>(this->count) <= max_entry_count, fs::ResultInvalidBucketTreeNodeEntryCount());
|
||||
R_UNLESS(this->offset >= 0, fs::ResultInvalidBucketTreeNodeOffset());
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Initialize(IAllocator *allocator, fs::SubStorage node_storage, fs::SubStorage entry_storage, size_t node_size, size_t entry_size, s32 entry_count) {
|
||||
|
@ -300,7 +300,7 @@ namespace ams::fssystem {
|
|||
m_offsets = offsets;
|
||||
}
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Visitor::MoveNext() {
|
||||
|
@ -336,7 +336,7 @@ namespace ams::fssystem {
|
|||
|
||||
/* Note that we changed index. */
|
||||
m_entry_index = entry_index;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Visitor::MovePrevious() {
|
||||
|
@ -374,7 +374,7 @@ namespace ams::fssystem {
|
|||
|
||||
/* Note that we changed index. */
|
||||
m_entry_index = entry_index;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Visitor::Find(s64 virtual_address) {
|
||||
|
@ -421,7 +421,7 @@ namespace ams::fssystem {
|
|||
|
||||
/* Set count. */
|
||||
m_entry_set_count = m_tree->m_entry_set_count;
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Visitor::FindEntrySet(s32 *out_index, s64 virtual_address, s32 node_index) {
|
||||
|
@ -457,7 +457,7 @@ namespace ams::fssystem {
|
|||
|
||||
/* Return the index. */
|
||||
*out_index = m_tree->GetEntrySetIndex(header.index, node.GetIndex());
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Visitor::FindEntrySetWithoutBuffer(s32 *out_index, s64 virtual_address, s32 node_index) {
|
||||
|
@ -478,7 +478,7 @@ namespace ams::fssystem {
|
|||
|
||||
/* Return the index. */
|
||||
*out_index = m_tree->GetEntrySetIndex(header.index, node.GetIndex());
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Visitor::FindEntry(s64 virtual_address, s32 entry_set_index) {
|
||||
|
@ -522,7 +522,7 @@ namespace ams::fssystem {
|
|||
m_entry_set = entry_set;
|
||||
m_entry_index = entry_index;
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result BucketTree::Visitor::FindEntryWithoutBuffer(s64 virtual_address, s32 entry_set_index) {
|
||||
|
@ -551,7 +551,7 @@ namespace ams::fssystem {
|
|||
m_entry_set = entry_set;
|
||||
m_entry_index = entry_index;
|
||||
|
||||
return ResultSuccess();
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue