151 |
|
// Icon address (Mac address space, set by PatchROM()) |
152 |
|
uint32 CDROMIconAddr; |
153 |
|
|
154 |
– |
// Number of ticks between checks for disk insertion |
155 |
– |
const int driver_delay = 120; |
156 |
– |
|
154 |
|
// Flag: Control(accRun) has been called, interrupt routine is now active |
155 |
|
static bool acc_run_called = false; |
156 |
|
|
961 |
|
|
962 |
|
|
963 |
|
/* |
964 |
< |
* Driver interrupt routine - check for volumes to be mounted |
964 |
> |
* Driver interrupt routine (1Hz) - check for volumes to be mounted |
965 |
|
*/ |
966 |
|
|
967 |
|
void CDROMInterrupt(void) |
968 |
|
{ |
972 |
– |
static int tick_count = 0; |
969 |
|
if (!acc_run_called) |
970 |
|
return; |
971 |
|
|
972 |
< |
tick_count++; |
977 |
< |
if (tick_count > driver_delay) { |
978 |
< |
tick_count = 0; |
979 |
< |
mount_mountable_volumes(); |
980 |
< |
} |
972 |
> |
mount_mountable_volumes(); |
973 |
|
} |