mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-28 17:08:18 +01:00
Add missing load for some png images
This commit is contained in:
parent
7cce3899b8
commit
509981b16c
@ -634,6 +634,7 @@ EFI_STATUS XImage::LoadXImage(EFI_FILE *BaseDir, const XStringW& IconName)
|
||||
Status = egLoadFile(BaseDir, FileName.data(), &FileData, &FileDataLength);
|
||||
if (EFI_ERROR(Status)) {
|
||||
FileName = IconName + L".png";
|
||||
Status = egLoadFile(BaseDir, FileName.data(), &FileData, &FileDataLength);
|
||||
if (EFI_ERROR(Status)) {
|
||||
FileName = IconName; //may be it already contain extension, for example Logo.png
|
||||
Status = egLoadFile(BaseDir, FileName.data(), &FileData, &FileDataLength);
|
||||
|
Loading…
Reference in New Issue
Block a user