22 |
|
#include <exec/memory.h> |
23 |
|
#include <devices/trackdisk.h> |
24 |
|
#include <devices/scsidisk.h> |
25 |
+ |
#define __USE_SYSBASE |
26 |
|
#include <proto/exec.h> |
27 |
+ |
#include <inline/exec.h> |
28 |
|
|
29 |
|
#include "sysdeps.h" |
30 |
|
#include "main.h" |
80 |
|
buffer = (UBYTE *)AllocMem(buffer_size = 0x10000, buffer_memf); |
81 |
|
sense_buffer = (UBYTE *)AllocMem(SENSE_LENGTH, MEMF_CHIP | MEMF_PUBLIC); |
82 |
|
if (the_port == NULL || buffer == NULL || sense_buffer == NULL) { |
83 |
< |
ErrorAlert(GetString(STR_NO_MEM_ERR)); |
83 |
> |
ErrorAlert(STR_NO_MEM_ERR); |
84 |
|
QuitEmulator(); |
85 |
|
} |
86 |
|
|
99 |
|
struct IOStdReq *io = (struct IOStdReq *)CreateIORequest(the_port, sizeof(struct IOStdReq)); |
100 |
|
if (io == NULL) |
101 |
|
continue; |
102 |
< |
if (OpenDevice((UBYTE *)dev_name, dev_unit + lun * 10, (struct IORequest *)io, 0)) { |
102 |
> |
if (OpenDevice((UBYTE *) dev_name, dev_unit + lun * 10, (struct IORequest *)io, 0)) { |
103 |
|
DeleteIORequest(io); |
104 |
|
continue; |
105 |
|
} |