show unpacking progress in percents

This commit is contained in:
Martins Mozeiko
2017-11-16 21:29:54 -08:00
parent 5a86f84196
commit 1206d40166
4 changed files with 42 additions and 7 deletions
+1
View File
@@ -417,6 +417,7 @@ void unpack_psp_eboot(const char* path, const aes128_key* pkg_key, const uint8_t
uint8_t PKG_ALIGN(16) data[16 * ISO_SECTOR_SIZE];
uint64_t abs_offset = item_offset + psar_offset + block_offset;
sys_output_progress(enc_offset + abs_offset);
sys_read(pkg, enc_offset + abs_offset, data, block_size);
aes128_ctr_xor(pkg_key, pkg_iv, abs_offset / 16, data, block_size);