Add manifest support to -I

This commit is contained in:
Alcaro
2017-05-17 16:55:48 +02:00
parent ef813f6ce7
commit 37db058e14
4 changed files with 50 additions and 3 deletions

View File

@@ -410,6 +410,9 @@ struct bpsinfo bps_get_info(file* patch, bool changefrac)
if (!decodenum(patchdat, ret.size_in)) error(bps_too_big);
if (!decodenum(patchdat, ret.size_out)) error(bps_too_big);
if (!decodenum(patchdat, ret.meta_size)) error(bps_too_big);
ret.meta_start = patchdat - top;
uint8_t checksums[12];
if (!patch->read(checksums, len-12, 12)) error(bps_io);
ret.crc_in = read32(checksums+0);