loader/legacy.c
VOID WarnIfLegacyProblems(VOID) {
   BOOLEAN  found = FALSE;
   UINTN    i = 0;

   if (GlobalConfig.LegacyType == LEGACY_TYPE_NONE) {
      do {
         if (GlobalConfig.ScanFor[i] == 'h' || GlobalConfig.ScanFor[i] == 'b' || GlobalConfig.ScanFor[i] == 'c' ||
             GlobalConfig.ScanFor[i] == 'H' || GlobalConfig.ScanFor[i] == 'B' || GlobalConfig.ScanFor[i] == 'C')
            found = TRUE;
         i++;
      } while ((i < NUM_SCAN_OPTIONS) && (!found));

      if (found) {
         Print(L"NOTE: In the loader configuration file, the 'scanfor' line specifies scanning for\n");
         Print(L"one or more legacy (BIOS) boot options; however, this is not possible because your\n");
         Print(L"computer lacks the necessary Compatibility Support Module (CSM) support or that support\n");
         Print(L"is disabled in your firmware.\n");
         PauseForKey();
      } // if (found)
   } // if no legacy support
}
// Warn the user if legacy OS scans are enabled but the firmware can't support them....
Warn the user if legacy OS scans are enabled but the firmware can't support them
Warn the user if legacy OS scans are enabled but the firmware can ' t support them
VOID WarnIfLegacyProblems(VOID) {
   BOOLEAN  found = FALSE;
   UINTN    i = 0;
   if (GlobalConfig.LegacyType == LEGACY_TYPE_NONE) {
      do {
         if (GlobalConfig.ScanFor[i] == 'h' || GlobalConfig.ScanFor[i] == 'b' || GlobalConfig.ScanFor[i] == 'c' ||
             GlobalConfig.ScanFor[i] == 'H' || GlobalConfig.ScanFor[i] == 'B' || GlobalConfig.ScanFor[i] == 'C')
            found = TRUE;
         i++;
      } while ((i < NUM_SCAN_OPTIONS) && (!found));
      if (found) {
         Print(L"NOTE: In the loader configuration file, the 'scanfor' line specifies scanning for\n");
         Print(L"one or more legacy (BIOS) boot options; however, this is not possible because your\n");
         Print(L"computer lacks the necessary Compatibility Support Module (CSM) support or that support\n");
         Print(L"is disabled in your firmware.\n");
         PauseForKey();
      } 
   } 
}
VOID WarnIfLegacyProblems ( VOID ) { BOOLEAN found = FALSE ; UINTN i = 0 ; if ( GlobalConfig . LegacyType == LEGACY_TYPE_NONE ) { do { if ( GlobalConfig . ScanFor [ i ] == ' ' || GlobalConfig . ScanFor [ i ] == ' ' || GlobalConfig . ScanFor [ i ] == ' ' || GlobalConfig . ScanFor [ i ] == ' ' || GlobalConfig . ScanFor [ i ] == ' ' || GlobalConfig . ScanFor [ i ] == ' ' ) found = TRUE ; i ++ ; } while ( ( i < NUM_SCAN_OPTIONS ) && ( ! found ) ) ; if ( found ) { Print ( L" \n " ) ; Print ( L" \n " ) ; Print ( L" \n " ) ; Print ( L" \n " ) ; PauseForKey ( ) ; } } }
Warn the user if legacy OS scans are enabled but the firmware can't support them....
Warn the user if legacy OS scans are enabled but the firmware can ' t support them ....
// if (found) // if no legacy support