src/mess/formats/basicdsk.c
| r9129 | r9130 | |
| 256 | 256 | |
| 257 | 257 | static floperr_t basicdsk_get_indexed_sector_info(floppy_image *floppy, int head, int track, int sector_index, int *cylinder, int *side, int *sector, UINT32 *sector_length, unsigned long *flags) |
| 258 | 258 | { |
| 259 | | const struct basicdsk_geometry *geom; |
| 260 | | geom = get_geometry(floppy); |
| 259 | const struct basicdsk_geometry *geom = get_geometry(floppy); |
| 261 | 260 | |
| 262 | | sector_index += get_geometry(floppy)->first_sector_id; |
| 261 | if (geom->translate_sector) |
| 262 | sector_index = geom->translate_sector(floppy, sector_index); |
| 263 | |
| 264 | sector_index += geom->first_sector_id; |
| 265 | |
| 263 | 266 | if (cylinder) |
| 264 | 267 | *cylinder = track; |
| 265 | 268 | if (side) |