mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
Add IC when checking drivers name at loading.
This commit is contained in:
parent
2f90c9702a
commit
8a561576cd
@ -437,7 +437,6 @@ EFI_STATUS BdsLibConnectMostlyAllEfi()
|
|||||||
EFI_PCI_IO_PROTOCOL* PciIo = NULL;
|
EFI_PCI_IO_PROTOCOL* PciIo = NULL;
|
||||||
PCI_TYPE00 Pci;
|
PCI_TYPE00 Pci;
|
||||||
|
|
||||||
MsgLog("1\n");
|
|
||||||
Status = gBS->LocateHandleBuffer (AllHandles, NULL, NULL, &AllHandleCount, &AllHandleBuffer);
|
Status = gBS->LocateHandleBuffer (AllHandles, NULL, NULL, &AllHandleCount, &AllHandleBuffer);
|
||||||
if (EFI_ERROR(Status))
|
if (EFI_ERROR(Status))
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -1712,18 +1712,18 @@ static void ScanDriverDir(IN CONST CHAR16 *Path, OUT EFI_HANDLE **DriversToConne
|
|||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( FileName.contains("AudioDxe") ) {
|
if ( FileName.containsIC("AudioDxe") ) {
|
||||||
AudioDriverHandle = DriverHandle;
|
AudioDriverHandle = DriverHandle;
|
||||||
}
|
}
|
||||||
if ( FileName.contains("EmuVariable") ) {
|
if ( FileName.containsIC("EmuVariable") ) {
|
||||||
gDriversFlags.EmuVariableLoaded = TRUE;
|
gDriversFlags.EmuVariableLoaded = TRUE;
|
||||||
} else if ( FileName.contains("Video") ) {
|
} else if ( FileName.containsIC("Video") ) {
|
||||||
gDriversFlags.VideoLoaded = TRUE;
|
gDriversFlags.VideoLoaded = TRUE;
|
||||||
} else if ( FileName.contains("Partition") ) {
|
} else if ( FileName.containsIC("Partition") ) {
|
||||||
gDriversFlags.PartitionLoaded = TRUE;
|
gDriversFlags.PartitionLoaded = TRUE;
|
||||||
} else if ( FileName.contains("HFS") ) {
|
} else if ( FileName.containsIC("HFS") ) {
|
||||||
gDriversFlags.HFSLoaded = TRUE;
|
gDriversFlags.HFSLoaded = TRUE;
|
||||||
} else if ( FileName.contains("apfs") ) {
|
} else if ( FileName.containsIC("apfs") ) {
|
||||||
gDriversFlags.APFSLoaded = TRUE;
|
gDriversFlags.APFSLoaded = TRUE;
|
||||||
}
|
}
|
||||||
if (DriverHandle != NULL && DriversToConnectNum != NULL && DriversToConnect != NULL) {
|
if (DriverHandle != NULL && DriversToConnectNum != NULL && DriversToConnect != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user