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

Function drive_empty

src/disk.cpp:1818–1834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1816}
1817
1818static bool drive_empty(drive * drv)
1819{
1820 if (drv->dskeject_time > 0) {
1821 return true;
1822 }
1823#ifdef FLOPPYBRIDGE
1824 if (drv->bridge) {
1825 bool v = drv->bridge->isDiskInDrive();
1826 return v == false;
1827 }
1828#endif
1829#ifdef CATWEASEL
1830 if (drv->catweasel)
1831 return catweasel_disk_changed (drv->catweasel) == 0;
1832#endif
1833 return drv->diskfile == NULL && drv->dskchange_time >= 0;
1834}
1835
1836static void drive_step(drive *drv, int step_direction)
1837{

Callers 8

drive_stepFunction · 0.85
disk_insert_2Function · 0.85
disk_emptyFunction · 0.85
DISK_update_predictFunction · 0.85
disk_doupdate_readFunction · 0.85
DSKBYTR_fakeFunction · 0.85
DISK_hsyncFunction · 0.85
restore_diskFunction · 0.85

Calls 1

isDiskInDriveMethod · 0.45

Tested by

no test coverage detected