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

Function blkdev_get_info

src/blkdev.cpp:592–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592bool blkdev_get_info (struct uae_prefs *p, int unitnum, struct device_info *di)
593{
594 bool open = true, opened = false, ok = false;
595 struct blkdevstate *st = &state[unitnum];
596 if (!st->isopen) {
597 blkdev_fix_prefs (p);
598 install_driver (0);
599 opened = true;
600 open = sys_command_open_internal (unitnum, p->cdslots[unitnum].name[0] ? p->cdslots[unitnum].name : NULL, CD_STANDARD_UNIT_DEFAULT) != 0;
601 }
602 if (open) {
603 ok = sys_command_info (unitnum, di, true) != 0;
604 }
605 if (open && opened)
606 sys_command_close_internal (unitnum);
607 return ok;
608}
609
610void blkdev_entergui (void)
611{

Callers 1

get_filesys_unitconfigFunction · 0.85

Calls 5

blkdev_fix_prefsFunction · 0.85
install_driverFunction · 0.85
sys_command_infoFunction · 0.85

Tested by

no test coverage detected