| 5467 | #endif //FLOPPYBRIDGE |
| 5468 | |
| 5469 | void DISK_init (void) |
| 5470 | { |
| 5471 | for (int dr = MAX_FLOPPY_DRIVES - 1; dr >= 0; dr--) { |
| 5472 | drive *drv = &floppy[dr]; |
| 5473 | drv->drvnum = dr; |
| 5474 | /* reset all drive types to 3.5 DD */ |
| 5475 | drive_settype_id (drv); |
| 5476 | if (!drive_insert (drv, &currprefs, dr, currprefs.floppyslots[dr].df, false, currprefs.floppyslots[dr].forcedwriteprotect)) |
| 5477 | disk_eject (dr); |
| 5478 | } |
| 5479 | #ifdef FLOPPYBRIDGE |
| 5480 | floppybridge_init2(&currprefs); |
| 5481 | #endif |
| 5482 | if (disk_empty (0)) |
| 5483 | write_log (_T("No disk in drive 0.\n")); |
| 5484 | #ifdef AMAX |
| 5485 | amax_init (); |
| 5486 | #endif |
| 5487 | } |
| 5488 | |
| 5489 | void DISK_reset (void) |
| 5490 | { |
no test coverage detected