COMMON: Support MacBinary3 files produced by ISOBuster
This commit is contained in:
parent
7f7e5ea6bc
commit
4221c38167
1 changed files with 3 additions and 2 deletions
|
@ -424,10 +424,11 @@ bool MacResManager::loadFromMacBinary(SeekableReadStream &stream) {
|
|||
uint32 rsrcSize = READ_BE_UINT32(infoHeader + MBI_RFLEN);
|
||||
|
||||
uint32 dataSizePad = (((dataSize + 127) >> 7) << 7);
|
||||
uint32 rsrcSizePad = (((rsrcSize + 127) >> 7) << 7);
|
||||
// Files produced by ISOBuster are not padded, thus, compare with the actual size
|
||||
//uint32 rsrcSizePad = (((rsrcSize + 127) >> 7) << 7);
|
||||
|
||||
// Length check
|
||||
if (MBI_INFOHDR + dataSizePad + rsrcSizePad == (uint32)stream.size()) {
|
||||
if (MBI_INFOHDR + dataSizePad + rsrcSize <= (uint32)stream.size()) {
|
||||
_resForkOffset = MBI_INFOHDR + dataSizePad;
|
||||
_resForkSize = rsrcSize;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue