Handle multiple OpenRuntime version.

This commit is contained in:
jief666 2021-09-25 11:03:31 +03:00
parent 9098b56bdf
commit 0bca61ad3d
2 changed files with 13 additions and 2 deletions

@ -1 +1 @@
Subproject commit f6df58d8439a3bef9e3452ab58382503285f88f0
Subproject commit c8e7ee0a48ff20c7e50898a2d03f6c7592458c36

View File

@ -1826,7 +1826,18 @@ static void ScanDriverDir(IN CONST CHAR16 *Path, OUT EFI_HANDLE **DriversToConne
continue;
}
if ( LStringW(DirEntry->FileName).containsIC("OpenRuntime") ) {
OpenRuntimeEfiName.takeValueFrom(DirEntry->FileName);
if ( LStringW(DirEntry->FileName).isEqualIC("OpenRuntime-v12.efi") && LString8(OPEN_CORE_VERSION).isEqual("0.7.3") ) {
OpenRuntimeEfiName.takeValueFrom(DirEntry->FileName);
}else
if ( LStringW(DirEntry->FileName).isEqualIC("OpenRuntime-v11.efi") && LString8(OPEN_CORE_VERSION).isEqual("0.6.5") ) {
OpenRuntimeEfiName.takeValueFrom(DirEntry->FileName);
}else
if ( LStringW(DirEntry->FileName).isEqualIC("OpenRuntime-v11.efi") && LString8(OPEN_CORE_VERSION).isEqual("0.6.1") ) {
OpenRuntimeEfiName.takeValueFrom(DirEntry->FileName);
}else
if ( OpenRuntimeEfiName.isEmpty() ) {
OpenRuntimeEfiName.takeValueFrom(DirEntry->FileName);
}
continue;
}
{