mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30:29 +00:00
add floppy driver number in load_image() parameters
This commit is contained in:
parent
aaa8e0a711
commit
22d765a08e
@ -11,7 +11,7 @@
|
||||
#include "glue.h"
|
||||
#include "load.h"
|
||||
|
||||
char* load_image(unsigned long offset, unsigned long size)
|
||||
char* load_image(int unit, unsigned long offset, unsigned long size)
|
||||
{
|
||||
int err;
|
||||
char* image;
|
||||
@ -32,7 +32,7 @@ char* load_image(unsigned long offset, unsigned long size)
|
||||
memset(¶m_block, 0, sizeof(param_block));
|
||||
|
||||
param_block.ioBuffer = (unsigned long)image;
|
||||
param_block.ioVRefNum = 1;
|
||||
param_block.ioVRefNum = unit;
|
||||
param_block.ioRefNum = -5;
|
||||
param_block.ioReqCount = size;
|
||||
param_block.ioPosMode = fsFromStart;
|
||||
|
@ -4,4 +4,4 @@
|
||||
*
|
||||
*/
|
||||
|
||||
extern char* load_image(unsigned long offset, unsigned long size);
|
||||
extern char* load_image(int unit, unsigned long offset, unsigned long size);
|
||||
|
Loading…
Reference in New Issue
Block a user