MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / DISK_init

Function DISK_init

src/disk.cpp:5469–5487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5467#endif //FLOPPYBRIDGE
5468
5469void 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
5489void DISK_reset (void)
5490{

Callers 1

real_main2Function · 0.85

Calls 6

drive_settype_idFunction · 0.85
disk_ejectFunction · 0.85
floppybridge_init2Function · 0.85
disk_emptyFunction · 0.85
amax_initFunction · 0.85
write_logFunction · 0.70

Tested by

no test coverage detected