1.1 --- a/src/drivers/cdrom/isofs.c Thu Jun 10 22:13:16 2010 +1000
1.2 +++ b/src/drivers/cdrom/isofs.c Mon Mar 05 22:20:33 2012 +1000
1.5 iso_write_opts_set_appendable(opts,0);
1.6 iso_write_opts_set_ms_block(opts, start_sector);
1.7 - iso_write_opts_set_system_area(opts, (char *)bootstrap, 0, 0);
1.9 status = iso_image_create_burn_source(image, opts, &burn);
1.10 iso_write_opts_free(opts);
1.12 int fd = file_sector_source_get_fd(source);
1.13 source->size = expect;
1.14 lseek( fd, 0, SEEK_SET );
1.15 + write( fd, bootstrap, 32768 );
1.16 for( cdrom_count_t count = 0; count < expect; count++ ) {
1.17 if( burn->read == NULL ) {
1.18 status = burn->read_xt(burn, buf, 2048);
1.23 - write( fd, buf, 2048 );
1.24 + /* Discard first 16 sectors, replaced with the bootstrap */
1.25 + if( count >= (32768/2048) )
1.26 + write( fd, buf, 2048 );
1.28 burn->free_data(burn);