mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 16:32:05 +00:00
libstrat: comment fixes for fssystem
This commit is contained in:
parent
fca213460b
commit
e54957285f
5 changed files with 7 additions and 7 deletions
|
@ -492,7 +492,7 @@ namespace ams::fssystem {
|
|||
AMS_ASSERT(offset >= 0);
|
||||
AMS_ASSERT(this->IsInitialized());
|
||||
|
||||
/* Succeed immediately, if we hvae nothing to read. */
|
||||
/* Succeed immediately, if we have nothing to read. */
|
||||
R_SUCCEED_IF(size == 0);
|
||||
|
||||
/* Declare read lambda. */
|
||||
|
@ -734,7 +734,7 @@ namespace ams::fssystem {
|
|||
}
|
||||
required_access_physical_size += physical_size + gap_from_prev;
|
||||
|
||||
/* Create an entry. to access the data storage. */
|
||||
/* Create an entry to access the data storage. */
|
||||
entries[entry_count++] = {
|
||||
.compression_type = entry.compression_type,
|
||||
.gap_from_prev = static_cast<u32>(gap_from_prev),
|
||||
|
@ -758,7 +758,7 @@ namespace ams::fssystem {
|
|||
.virtual_size = static_cast<u32>(read_size),
|
||||
};
|
||||
} else {
|
||||
/* We have no entries, we we can just perform the read. */
|
||||
/* We have no entries, so we can just perform the read. */
|
||||
R_TRY(read_func(static_cast<size_t>(read_size), util::MakeIFunction([&] (void *dst, size_t dst_size) -> Result {
|
||||
/* Check the space we should zero is correct. */
|
||||
AMS_ASSERT(dst_size == static_cast<size_t>(read_size));
|
||||
|
|
|
@ -146,7 +146,7 @@ namespace ams::fssystem {
|
|||
|
||||
auto cur_entry = *visitor.Get<Entry>();
|
||||
while (cur_entry.GetOffset() < end_offset) {
|
||||
/* Try to write the entry to the out list */
|
||||
/* Try to write the entry to the out list. */
|
||||
if (entry_count != 0) {
|
||||
if (count >= entry_count) {
|
||||
break;
|
||||
|
|
|
@ -191,7 +191,7 @@ namespace ams::fssystem {
|
|||
m_offset_cache.offsets.end_offset = end_offset;
|
||||
m_offset_cache.is_initialized = true;
|
||||
|
||||
/* Cancel guard. */
|
||||
/* We succeeded. */
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ namespace ams::fssystem {
|
|||
|
||||
auto cur_entry = *visitor.Get<Entry>();
|
||||
while (cur_entry.GetVirtualOffset() < end_offset) {
|
||||
/* Try to write the entry to the out list */
|
||||
/* Try to write the entry to the out list. */
|
||||
if (entry_count != 0) {
|
||||
if (count >= entry_count) {
|
||||
break;
|
||||
|
|
|
@ -256,7 +256,7 @@ namespace ams::fssystem {
|
|||
|
||||
/* Process indirect layer. */
|
||||
if (patch_info.HasIndirectTable()) {
|
||||
/* Create the indirect meta storage */
|
||||
/* Create the indirect meta storage. */
|
||||
std::shared_ptr<fs::IStorage> indirect_storage_meta_storage = patch_meta_indirect_meta_storage;
|
||||
if (indirect_storage_meta_storage == nullptr) {
|
||||
/* If we don't have a meta storage, we must not have a patch meta hash layer. */
|
||||
|
|
Loading…
Reference in a new issue