mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +00:00
remove file_ref
This commit is contained in:
parent
cd9666fb9e
commit
320c1c3ee1
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user