diff --git a/libemile/emile_first_get_param.c b/libemile/emile_first_get_param.c index a67b128..93e4c09 100644 --- a/libemile/emile_first_get_param.c +++ b/libemile/emile_first_get_param.c @@ -14,8 +14,8 @@ static __attribute__((used)) char* rcsid = "$CVSHeader$"; #include "emile.h" #include "bootblock.h" -int emile_first_get_param(int fd, int *drive_num, int *file_ref, - int *second_offset, int *second_size) +int emile_first_get_param(int fd, int *drive_num, int *second_offset, + int *second_size) { eBootBlock_t firstBlock; int ret; @@ -28,7 +28,6 @@ int emile_first_get_param(int fd, int *drive_num, int *file_ref, "Mac Bootloader", 14) == 0 ) { *drive_num = read_short(&firstBlock.second_param_block.ioVRefNum); - *file_ref = read_short(&firstBlock.second_param_block.ioRefNum); *second_offset = read_long(&firstBlock.second_param_block.ioPosOffset); *second_size = read_long(&firstBlock.second_param_block.ioReqCount); } diff --git a/libemile/emile_first_set_param.c b/libemile/emile_first_set_param.c index c5ccc47..3aa00f8 100644 --- a/libemile/emile_first_set_param.c +++ b/libemile/emile_first_set_param.c @@ -15,7 +15,7 @@ static __attribute__((used)) char* rcsid = "$CVSHeader$"; #include "bootblock.h" int emile_first_set_param(int fd, unsigned short tune_mask, int drive_num, - int file_ref, int second_offset, int second_size) + int second_offset, int second_size) { eBootBlock_t firstBlock; int ret; diff --git a/libemile/emile_floppy_create_image.c b/libemile/emile_floppy_create_image.c index b9aeccf..76fc9d7 100644 --- a/libemile/emile_floppy_create_image.c +++ b/libemile/emile_floppy_create_image.c @@ -179,8 +179,7 @@ int emile_floppy_create_image(char* first_level, char* second_level, ret = emile_first_set_param(fd, EMILE_FIRST_TUNE_DRIVE | EMILE_FIRST_TUNE_OFFSET| EMILE_FIRST_TUNE_SIZE, - 1, -5, - FIRST_LEVEL_SIZE, + 1, FIRST_LEVEL_SIZE, second_level_size); if (ret != 0) { @@ -191,7 +190,8 @@ int emile_floppy_create_image(char* first_level, char* second_level, /* set second level info */ ret = emile_second_set_kernel(fd, kernel_image, - FIRST_LEVEL_SIZE + get_size(second_level), + FIRST_LEVEL_SIZE + + emile_file_get_size(second_level), buffer_size, ramdisk); if (ret != 0) {