mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-09-21 02:51:04 +02:00
make path_independant used
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
a34840baa1
commit
259ebbbf08
@ -388,7 +388,7 @@ SetBootCurrent(REFIT_MENU_ITEM_BOOTNUM *Entry)
|
||||
if (VarSize > NameSize + 6) {
|
||||
Data += NameSize;
|
||||
if (StriCmp((CHAR16*)Data, Basename(Entry->LoaderPath.wc_str())) != 0) {
|
||||
DBG("Boot option %llu has other loader name %ls\n", Entry->BootNum, (CHAR16*)Data);
|
||||
DBG("Boot option %llu has other loader name %ls\n", Entry->BootNum, (CHAR16*)Data);
|
||||
FreePool(BootVariable);
|
||||
return;
|
||||
}
|
||||
@ -403,6 +403,7 @@ SetBootCurrent(REFIT_MENU_ITEM_BOOTNUM *Entry)
|
||||
&Entry->BootNum);
|
||||
if (EFI_ERROR(Status)) {
|
||||
DBG("Can't save BootCurrent, status=%s\n", efiStrError(Status));
|
||||
DBG("%s\n", path_independant);
|
||||
}
|
||||
//Next step is rotate BootOrder to set BootNum to first place
|
||||
BootOrder = (__typeof__(BootOrder))GetNvramVariable(L"BootOrder", &gEfiGlobalVariableGuid, NULL, &BootOrderSize);
|
||||
|
@ -1094,7 +1094,7 @@ void AboutRefit(void)
|
||||
// AboutMenu.TitleImage.setEmpty(); //done in the constructor
|
||||
// }
|
||||
// AboutMenu.AddMenuInfo_f(("Clover Version 5.0"));
|
||||
if ( "unknown"_XS8 != LString8(gRevisionStr) ) AboutMenu.AddMenuInfo_f("%s%s", gRevisionStr, path_independant!=NULL ? "" : ""); // trick to let the compiler think path_independant is used and must be kept in binary.
|
||||
if ( "unknown"_XS8 != LString8(gRevisionStr) ) AboutMenu.AddMenuInfo_f("%s%s", gRevisionStr, path_independant!=NULL ? "" : "."); // trick to let the compiler think path_independant is used and must be kept in binary.
|
||||
if ( "unknown"_XS8 != LString8(gFirmwareBuildDate) ) AboutMenu.AddMenuInfo_f(" Build: %s", gFirmwareBuildDate);
|
||||
if ( "unknown"_XS8 != gBuildId ) AboutMenu.AddMenuInfo_f(" Build id: %s", gBuildId.c_str());
|
||||
AboutMenu.AddMenuInfo_f(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user