mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
[nstool] Fixed seek() typo in HashTreeWrappedIFile
This commit is contained in:
parent
0b0d546605
commit
57d03b6076
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ void HashTreeWrappedIFile::read(byte_t* out, size_t len)
|
||||||
}
|
}
|
||||||
|
|
||||||
// update offset
|
// update offset
|
||||||
mDataOffset += len;
|
seek(mDataOffset + len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HashTreeWrappedIFile::read(byte_t* out, size_t offset, size_t len)
|
void HashTreeWrappedIFile::read(byte_t* out, size_t offset, size_t len)
|
||||||
|
@ -169,7 +169,7 @@ void HashTreeWrappedIFile::initialiseDataLayer(const HashTreeMeta& hdr)
|
||||||
|
|
||||||
void HashTreeWrappedIFile::readData(size_t block_offset, size_t block_num)
|
void HashTreeWrappedIFile::readData(size_t block_offset, size_t block_num)
|
||||||
{
|
{
|
||||||
seek(block_offset * mDataBlockSize);
|
mData->seek(block_offset * mDataBlockSize);
|
||||||
crypto::sha::sSha256Hash hash;
|
crypto::sha::sSha256Hash hash;
|
||||||
|
|
||||||
// determine read size
|
// determine read size
|
||||||
|
|
Loading…
Reference in a new issue