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

Function unformatted

src/disk.cpp:3769–3785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3767}
3768
3769static bool unformatted (drive *drv)
3770{
3771#ifdef FLOPPYBRIDGE
3772 if (drv->bridge) {
3773 bool v = drv->bridge->isDiskInDrive();
3774 return v == false;
3775 }
3776#endif
3777 int tr = drv->cyl * 2 + side;
3778 if (tr >= drv->num_tracks)
3779 return true;
3780 if (drv->filetype == ADF_EXT2 && drv->trackdata[tr].bitlen == 0 && drv->trackdata[tr].type != TRACK_AMIGADOS)
3781 return true;
3782 if (drv->trackdata[tr].type == TRACK_NONE)
3783 return true;
3784 return false;
3785}
3786
3787static int nextbit(drive *drv)
3788{

Callers 3

DISK_update_predictFunction · 0.85
disk_doupdate_readFunction · 0.85
DSKBYTR_fakeFunction · 0.85

Calls 1

isDiskInDriveMethod · 0.45

Tested by

no test coverage detected