Lines Matching refs:map_offset
64 int map_offset, map_length ;
238 rsrc.map_offset = rsrc.data_offset + rsrc.data_length ;
241 psf_binheader_writef (psf, "E444", BHW4 (rsrc.data_offset), BHW4 (rsrc.map_offset), BHW4 (rsrc.data_length)) ;
247 psf_binheader_writef (psf, "E4444", BHW4 (rsrc.map_offset), BHW4 (rsrc.data_offset), BHW4 (rsrc.map_offset), BHW4 (rsrc.data_length)) ;
251 { psf_binheader_writef (psf, "Eo1422", BHWo (rsrc.map_offset + 16), BHW1 (1), BHW4 (0x12345678), BHW2 (0xabcd), BHW2 (0)) ;
255 rsrc.type_offset = rsrc.map_offset + 30 ;
256 psf_binheader_writef (psf, "Eo2", BHWo (rsrc.map_offset + 24), BHW2 (rsrc.type_offset - rsrc.map_offset - 2)) ;
260 psf_binheader_writef (psf, "Eo2", BHWo (rsrc.map_offset + 28), BHW2 (rsrc.type_count - 1)) ;
265 rsrc.string_offset = rsrc.item_offset + (rsrc.str_count + 1) * 12 - rsrc.map_offset ;
266 psf_binheader_writef (psf, "Eo2", BHWo (rsrc.map_offset + 26), BHW2 (rsrc.string_offset)) ;
275 str_offset = rsrc.map_offset + rsrc.string_offset ;
293 rsrc.map_length = str_offset - rsrc.map_offset ;
295 BHWo (rsrc.map_offset + 12), BHW4 (rsrc.map_length)) ;
297 psf->header.indx = rsrc.map_offset + rsrc.map_length ;
399 rsrc.map_offset = read_rsrc_int (&rsrc, 4) ;
403 if (rsrc.data_offset == 0x51607 && rsrc.map_offset == 0x20000)
406 rsrc.map_offset = read_rsrc_int (&rsrc, 0x52 + 4) + 0x52 ;
413 rsrc.data_offset, rsrc.map_offset, rsrc.data_length, rsrc.map_length) ;
421 if (rsrc.map_offset > rsrc.rsrc_len)
422 { psf_log_printf (psf, "Error : rsrc.map_offset > len\n") ;
439 if (rsrc.data_offset + rsrc.data_length != rsrc.map_offset || rsrc.map_offset + rsrc.map_length != rsrc.rsrc_len)
445 if (rsrc.map_offset + 28 >= rsrc.rsrc_len)
446 { psf_log_printf (psf, "Bad map offset (%d + 28 > %d).\n", rsrc.map_offset, rsrc.rsrc_len) ;
451 rsrc.string_offset = rsrc.map_offset + read_rsrc_short (&rsrc, rsrc.map_offset + 26) ;
458 rsrc.type_offset = rsrc.map_offset + 30 ;
460 if (rsrc.map_offset + 28 > rsrc.rsrc_len)
465 rsrc.type_count = read_rsrc_short (&rsrc, rsrc.map_offset + 28) + 1 ;