mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
ipf: Fix #1360 [O. Galibert]
This commit is contained in:
parent
def8866f0d
commit
7e22428d6a
@ -683,7 +683,7 @@ bool ipf_format::generate_block(track_info *t, UINT32 idx, UINT32 ipos, UINT32 *
|
||||
return false;
|
||||
if(!generate_block_data(data + r32(thead+28), data_end, track+dpos, track+gpos, context))
|
||||
return false;
|
||||
if(!generate_block_gap(r32(thead+20), gap_cells, r32(thead+24), spos, ipos-gpos, data + r32(thead+8), data_end, track+gpos, context))
|
||||
if(!generate_block_gap(r32(thead+20), gap_cells, r32(thead+24), spos, ipos > gpos ? ipos-gpos : 0, data + r32(thead+8), data_end, track+gpos, context))
|
||||
return false;
|
||||
spos += gpos;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user