loader/legacy.c
VOID ScanLegacyInternal(VOID)
{
    UINTN                   VolumeIndex;
    REFIT_VOLUME            *Volume;

    if (GlobalConfig.LegacyType == LEGACY_TYPE_MAC) {
       for (VolumeIndex = 0; VolumeIndex < VolumesCount; VolumeIndex++) {
           Volume = Volumes[VolumeIndex];
           if (Volume->DiskKind == DISK_KIND_INTERNAL)
               ScanLegacyVolume(Volume, VolumeIndex);
       } // for
    } else if (GlobalConfig.LegacyType == LEGACY_TYPE_UEFI) {
       // TODO: This actually picks up USB flash drives, too; try to find
       // a way to differentiate the two....
       ScanLegacyUEFI(BBS_HARDDISK);
    }
}
// Scan internal hard disks for legacy (BIOS) boot code
// and add anything found to the list....
Scan internal hard disks for legacy (BIOS) boot code
and add anything found to the list
Scan internal hard disks for legacy ( BIOS ) boot code and add anything found to the list
VOID ScanLegacyInternal(VOID)
{
    UINTN                   VolumeIndex;
    REFIT_VOLUME            *Volume;
    if (GlobalConfig.LegacyType == LEGACY_TYPE_MAC) {
       for (VolumeIndex = 0; VolumeIndex < VolumesCount; VolumeIndex++) {
           Volume = Volumes[VolumeIndex];
           if (Volume->DiskKind == DISK_KIND_INTERNAL)
               ScanLegacyVolume(Volume, VolumeIndex);
       } 
    } else if (GlobalConfig.LegacyType == LEGACY_TYPE_UEFI) {
       ScanLegacyUEFI(BBS_HARDDISK);
    }
}
VOID ScanLegacyInternal ( VOID ) { UINTN VolumeIndex ; REFIT_VOLUME * Volume ; if ( GlobalConfig . LegacyType == LEGACY_TYPE_MAC ) { for ( VolumeIndex = 0 ; VolumeIndex < VolumesCount ; VolumeIndex ++ ) { Volume = Volumes [ VolumeIndex ] ; if ( Volume -> DiskKind == DISK_KIND_INTERNAL ) ScanLegacyVolume ( Volume , VolumeIndex ) ; } } else if ( GlobalConfig . LegacyType == LEGACY_TYPE_UEFI ) { ScanLegacyUEFI ( BBS_HARDDISK ) ; } }
Scan internal hard disks for legacy (BIOS) boot code
and add anything found to the list....
Scan internal hard disks for legacy ( BIOS ) boot code and add anything found to the list ....
// for // TODO: This actually picks up USB flash drives, too; try to find // a way to differentiate the two....