fix ncz install due to write offset being applied twice, fix zlt, bump version 0.11.2 -> 0.11.3

bug was introduced in 6b56b7f.
This commit is contained in:
ITotalJustice
2025-05-29 01:45:15 +01:00
parent 391234ea7b
commit 17b341d83a
3 changed files with 3 additions and 3 deletions

View File

@@ -704,7 +704,7 @@ Result Yati::writeFuncInternal(ThreadData* t) {
s64 off{};
while (off < buf.size() && t->write_offset < t->write_size && R_SUCCEEDED(t->GetResults())) {
const auto wsize = std::min<s64>(t->read_buffer_size, buf.size() - off);
R_TRY(ncmContentStorageWritePlaceHolder(std::addressof(cs), std::addressof(t->nca->placeholder_id), t->write_offset + off, buf.data() + off, wsize));
R_TRY(ncmContentStorageWritePlaceHolder(std::addressof(cs), std::addressof(t->nca->placeholder_id), t->write_offset, buf.data() + off, wsize));
off += wsize;
t->write_offset += wsize;