mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-05 11:29:41 +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 "emile.h"
|
||||||
#include "bootblock.h"
|
#include "bootblock.h"
|
||||||
|
|
||||||
int emile_first_get_param(int fd, int *drive_num, int *file_ref,
|
int emile_first_get_param(int fd, int *drive_num, int *second_offset,
|
||||||
int *second_offset, int *second_size)
|
int *second_size)
|
||||||
{
|
{
|
||||||
eBootBlock_t firstBlock;
|
eBootBlock_t firstBlock;
|
||||||
int ret;
|
int ret;
|
||||||
@ -28,7 +28,6 @@ int emile_first_get_param(int fd, int *drive_num, int *file_ref,
|
|||||||
"Mac Bootloader", 14) == 0 )
|
"Mac Bootloader", 14) == 0 )
|
||||||
{
|
{
|
||||||
*drive_num = read_short(&firstBlock.second_param_block.ioVRefNum);
|
*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_offset = read_long(&firstBlock.second_param_block.ioPosOffset);
|
||||||
*second_size = read_long(&firstBlock.second_param_block.ioReqCount);
|
*second_size = read_long(&firstBlock.second_param_block.ioReqCount);
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ static __attribute__((used)) char* rcsid = "$CVSHeader$";
|
|||||||
#include "bootblock.h"
|
#include "bootblock.h"
|
||||||
|
|
||||||
int emile_first_set_param(int fd, unsigned short tune_mask, int drive_num,
|
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;
|
eBootBlock_t firstBlock;
|
||||||
int ret;
|
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 |
|
ret = emile_first_set_param(fd, EMILE_FIRST_TUNE_DRIVE |
|
||||||
EMILE_FIRST_TUNE_OFFSET|
|
EMILE_FIRST_TUNE_OFFSET|
|
||||||
EMILE_FIRST_TUNE_SIZE,
|
EMILE_FIRST_TUNE_SIZE,
|
||||||
1, -5,
|
1, FIRST_LEVEL_SIZE,
|
||||||
FIRST_LEVEL_SIZE,
|
|
||||||
second_level_size);
|
second_level_size);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
@ -191,7 +190,8 @@ int emile_floppy_create_image(char* first_level, char* second_level,
|
|||||||
/* set second level info */
|
/* set second level info */
|
||||||
|
|
||||||
ret = emile_second_set_kernel(fd, kernel_image,
|
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);
|
buffer_size, ramdisk);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user