From 5753b62af9fb91f0f8bfa89212440cc5641d776c Mon Sep 17 00:00:00 2001 From: YBronst Date: Wed, 25 Feb 2026 11:11:22 +0200 Subject: [PATCH 1/3] Minor fix --- rEFIt_UEFI/entry_scan/legacy.cpp | 2 +- rEFIt_UEFI/entry_scan/loader.cpp | 87 +++++++++++++++++++++++++++++--- 2 files changed, 80 insertions(+), 9 deletions(-) diff --git a/rEFIt_UEFI/entry_scan/legacy.cpp b/rEFIt_UEFI/entry_scan/legacy.cpp index daeca5806e..995ab443f2 100644 --- a/rEFIt_UEFI/entry_scan/legacy.cpp +++ b/rEFIt_UEFI/entry_scan/legacy.cpp @@ -121,7 +121,7 @@ DBG(" Volume->LegacyOS.Name=%ls\n", Volume->LegacyOS.Name.wc_str()); Entry->Title.SWPrintf("Boot %ls from %ls", LoaderTitle.wc_str(), VolDesc.wc_str()); } } -// DBG(" Entry->Title=%ls\n", Entry->Title.wc_str()); + DBG(" Entry->Title=%ls\n", Entry->Title.wc_str()); Entry->Row = 0; Entry->ShortcutLetter = (Hotkey == 0) ? ShortcutLetter : Hotkey; diff --git a/rEFIt_UEFI/entry_scan/loader.cpp b/rEFIt_UEFI/entry_scan/loader.cpp index a14027c1bf..23b52cc55a 100644 --- a/rEFIt_UEFI/entry_scan/loader.cpp +++ b/rEFIt_UEFI/entry_scan/loader.cpp @@ -477,7 +477,31 @@ STATIC EFI_STATUS GetOSXVolumeName(LOADER_ENTRY *Entry) { Status = egLoadFile(Entry->Volume->RootDir, targetNameFile, (UINT8 **)&fileBuffer, &fileLen); if (!EFI_ERROR(Status)) { - if (Entry->DisplayedVolName.isEmpty()) { + // CHAR16 *tmpName; + // Create null terminated string + // targetString = (CHAR8*) A_llocateZeroPool(fileLen+1); + // CopyMem( (void*)targetString, (void*)fileBuffer, fileLen); + // DBG("found disk_label with contents:%s\n", targetString); + + // NOTE: Sothor - This was never run. If we need this correct it and + // uncomment it. if (Entry->LoaderType == OSTYPE_OSX) { + // INTN i; + // //remove occurence number. eg: "vol_name 2" --> "vol_name" + // i=fileLen-1; + // while ((i>0) && (targetString[i]>='0') && + // (targetString[i]<='9')) { + // i--; + // } + // if (targetString[i] == ' ') { + // targetString[i] = 0; + // } + // } + + // //Convert to Unicode + // tmpName = (CHAR16*)A_llocateZeroPool((fileLen+1)*2); + // AsciiStrToUnicodeStrS(targetString, tmpName, fileLen); + + if (Entry->DisplayedVolName.isEmpty()) { Entry->DisplayedVolName.strncpy(fileBuffer, fileLen); } Entry->Volume->osxVolumeName.strncpy(fileBuffer, fileLen); @@ -617,6 +641,17 @@ MacOsVersion GetOSVersion(int LoaderType, const EFI_GUID &APFSTargetUUID, } } + // if ( OSVersion.isEmpty() ) + // { + // if ( FileExists(Volume->RootDir, + // SWPrintf("\\%ls\\com.apple.installer\\BridgeVersion.plist", + // APFSTargetUUID.wc_str()).wc_str()) ) { + // OSVersion = "11.0"_XS8; + // // TODO so far, is there is a BridgeVersion.plist, it's + // version 11.0. Has to be improved with next releases. + // } + // } + // 1st stage - 2 // Check for plist - createinstallmedia/NetInstall if (OSVersion.isEmpty()) { @@ -798,6 +833,10 @@ MacOsVersion GetOSVersion(int LoaderType, const EFI_GUID &APFSTargetUUID, if (OSVersion.isEmpty()) { CONST CHAR8 *s; UINT8 *fileBuffer = NULL; + // CHAR8 *Res5 = (__typeof__(Res5))AllocateZeroPool(5); + // CHAR8 *Res6 = (__typeof__(Res6))AllocateZeroPool(6); + // CHAR8 *Res7 = (__typeof__(Res7))AllocateZeroPool(7); + // CHAR8 *Res8 = (__typeof__(Res8))AllocateZeroPool(8); UINTN fileLen = 0; XStringW InstallerLog; InstallerLog = L"\\Mac OS X Install Data\\ia.log"_XSW; // 10.7 @@ -813,7 +852,8 @@ MacOsVersion GetOSVersion(int LoaderType, const EFI_GUID &APFSTargetUUID, if (!EFI_ERROR(Status)) { XString8 targetString; targetString.strncpy((CHAR8 *)fileBuffer, fileLen); - + // s = SearchString(targetString, fileLen, "Running OS Build: Mac + // OS X ", 27); s = AsciiStrStr(targetString.c_str(), "Running OS Build: Mac OS X "); if (s[31] == ' ') { OSVersion.S8Printf("%c%c.%c\n", s[27], s[28], s[30]); @@ -1294,7 +1334,7 @@ STATIC LOADER_ENTRY *CreateLoaderEntry( Entry->LoaderType = OSTYPE_OTHER; break; } -// DBG("OSIconName=%ls \n", OSIconName.wc_str()); + // DBG("OSIconName=%ls \n", OSIconName.wc_str()); Entry->OSName = OSIconName.subString(0, OSIconName.indexOf(',')); // TODO // SmbiosList.AddReference(OSName.forgetDataWithoutFreeing(), true); @@ -1536,9 +1576,11 @@ void LOADER_ENTRY::AddDefaultMenu() { SubScreen->AddMenuCheck("Don't reboot on panic (debug=0x100)", OPT_DEBUG, 68); SubScreen->AddMenuCheck("Debug kexts (kextlog=0xffff)", OPT_KEXTLOG, 68); + if (gSettings.RtVariables.CsrActiveConfig == 0) { SubScreen->AddMenuCheck("No SIP", OSFLAG_NOSIP, 69); } + } else if (LoaderType == OSTYPE_LINEFI) { XBool Quiet = LoadOptions.contains(quietLitteral); XBool WithSplash = LoadOptions.contains(splashLitteral); @@ -2090,6 +2132,7 @@ MacOsVersion GetMacOSVersionFromFolder(const EFI_FILE &dir, void ScanLoader(void) { + // DBG("Scanning loaders...\n"); DbgHeader("ScanLoader"); for (UINTN VolumeIndex = 0; VolumeIndex < Volumes.size(); VolumeIndex++) { @@ -2308,7 +2351,7 @@ void ScanLoader(void) Volume, NULL, OSTYPE_WINEFI, 0); } -#if defined(ANDX86) +#if defined(ANDX86) if (true) { // gSettings.AndroidScan // check for Android loaders for (UINTN Index = 0; Index < AndroidEntryDataCount; ++Index) { @@ -2372,6 +2415,8 @@ void ScanLoader(void) } } + // DBG("Volume->ApfsTargetUUIDArray.size()=%zd\n", + // Volume->ApfsTargetUUIDArray.size()); if (Volume->ApfsTargetUUIDArray.size() > 0) { for (UINTN i = 0; i < Volume->ApfsTargetUUIDArray.size(); i++) { @@ -2395,7 +2440,9 @@ void ScanLoader(void) for (size_t VolumeIndex2 = 0; VolumeIndex2 < Volumes.size(); VolumeIndex2++) { REFIT_VOLUME *Volume2 = &Volumes[VolumeIndex2]; - + // DBG("idx=%zu name %ls uuid=%s \n", VolumeIndex2, + // Volume2->VolName.wc_str(), + // Volume2->ApfsFileSystemUUID.c_str()); if (Volume2->ApfsContainerUUID == targetVolume->ApfsContainerUUID) { if ((Volume2->ApfsRole & APPLE_APFS_VOLUME_ROLE_SYSTEM) != 0) { @@ -2422,7 +2469,9 @@ void ScanLoader(void) for (size_t VolumeIndex2 = 0; VolumeIndex2 < Volumes.size(); VolumeIndex2++) { REFIT_VOLUME *Volume2 = &Volumes[VolumeIndex2]; - + // DBG("idx=%zu name %ls uuid=%s \n", VolumeIndex2, + // Volume2->VolName.wc_str(), + // Volume2->ApfsFileSystemUUID.c_str()); if ((Volume2->ApfsRole & APPLE_APFS_VOLUME_ROLE_PREBOOT) != 0) { if (Volume2->ApfsContainerUUID == Volume->ApfsContainerUUID) { bootVolume = Volume2; @@ -2475,7 +2524,11 @@ void ScanLoader(void) FullTitleInstaller.SWPrintf("Mac OS Install"); } } - + /*MacOsVersion macOSVersion = + GetMacOSVersionFromFolder(*Volume->RootDir, + SWPrintf("\\%s\\System\\Library\\CoreServices", + ApfsTargetUUID.c_str())); if ( macOSVersion.notEmpty() && macOSVersion < + MacOsVersion("11"_XS8) )*/ FullTitle.SWCatf( " via %ls", Volume->getVolLabelOrOSXVolumeNameOrVolName().wc_str()); AddLoaderEntry(SWPrintf("\\%s\\System\\Library\\CoreServices\\boot.efi", @@ -2483,6 +2536,10 @@ void ScanLoader(void) NullXString8Array, FullTitle, LoaderTitle, Volume, NULL, OSTYPE_OSX, 0); + // Try to add Recovery APFS entry + /*macOSVersion = GetMacOSVersionFromFolder(*Volume->RootDir, + SWPrintf("\\%s", ApfsTargetUUID.c_str())); if ( macOSVersion.notEmpty() + && macOSVersion < MacOsVersion("11"_XS8) )*/ FullTitleRecovery.SWCatf( " via %ls", Volume->getVolLabelOrOSXVolumeNameOrVolName().wc_str()); if (!AddLoaderEntry( @@ -2498,6 +2555,9 @@ void ScanLoader(void) OSTYPE_RECOVERY, 0); } // Try to add macOS install entry + /*macOSVersion = GetMacOSVersionFromFolder(*Volume->RootDir, + SWPrintf("\\%s\\com.apple.installer", ApfsTargetUUID.c_str())); if ( + macOSVersion.notEmpty() && macOSVersion < MacOsVersion("11"_XS8) )*/ FullTitleInstaller.SWCatf( " via %ls", Volume->getVolLabelOrOSXVolumeNameOrVolName().wc_str()); @@ -2507,6 +2567,8 @@ void ScanLoader(void) if (FileExists(Volume->RootDir, installerPath)) { XString8 rootDmg = GetAuthRootDmg(*Volume->RootDir, installerPath); rootDmg.replaceAll("%20"_XS8, " "_XS8); + // while ( rootDmg.notEmpty() && rootDmg.startWith('/') ) + // rootDmg.deleteCharsAtPos(0, 1); rootDmg.replaceAll('/', '\\'); REFIT_VOLUME *targetInstallVolume = Volumes.getVolumeWithApfsContainerUUIDAndFileSystemUUID( @@ -2549,7 +2611,7 @@ void ScanLoader(void) DBG("Entries list before ordering\n"); for (size_t idx = 0; idx < MainMenu.Entries.sizeIncludingHidden(); idx++) { if (MainMenu.Entries.ElementAt(idx).getLOADER_ENTRY()) { - DBG(" Entry %zd : %ls%s \n", idx, + DBG(" Entry %zd : %ls%s\n", idx, MainMenu.Entries.ElementAt(idx).Title.wc_str(), MainMenu.Entries.ElementAt(idx).Hidden ? " (hidden)" : "" ); @@ -2596,6 +2658,9 @@ void ScanLoader(void) if (MainMenu.Entries.ElementAt(idx) .getLOADER_ENTRY() ->APFSTargetUUID.notNull()) { + // DBG("Add in EntriesArrayTmp at index %zd Entry %zd : %ls\n", + // EntriesArrayTmp.size(), idx, + // MainMenu.Entries.ElementAt(idx).Title.wc_str()); EntriesArrayTmp.AddReference( new EntryIdx(idx, &MainMenu.Entries.ElementAt(idx)), true); } @@ -2755,9 +2820,15 @@ void ScanLoader(void) DBG("Entries list after ordering\n"); for (size_t idx = 0; idx < MainMenu.Entries.sizeIncludingHidden(); idx++) { + // if ( MainMenu.Entries.ElementAt(idx).getLOADER_ENTRY() ) { + // DBG(" Entry %zd : %ls%s\n", idx, + // MainMenu.Entries.ElementAt(idx).Title.wc_str(), + // MainMenu.Entries.ElementAt(idx).Hidden ? " (hidden)" : ""); + // }else{ DBG(" Entry %zd : %ls%s\n", idx, MainMenu.Entries.ElementAt(idx).Title.wc_str(), MainMenu.Entries.ElementAt(idx).Hidden ? " (hidden)" : ""); + // } } } From 1407006a9d3756a2ee3824c5fd0fbaa5ac9155fd Mon Sep 17 00:00:00 2001 From: YBronst Date: Wed, 25 Feb 2026 14:33:35 +0200 Subject: [PATCH 2/3] Revert XStringW FileName SubEntry->Title.SWPrintf("Run %ls", FileName.wc_str()); SubScreen->AddMenuEntry(SubEntry, true); } - OSName = OldOSName; } --- rEFIt_UEFI/entry_scan/loader.cpp | 85 +++----------------------------- 1 file changed, 6 insertions(+), 79 deletions(-) diff --git a/rEFIt_UEFI/entry_scan/loader.cpp b/rEFIt_UEFI/entry_scan/loader.cpp index a8223e76f7..2d7cbe55ea 100644 --- a/rEFIt_UEFI/entry_scan/loader.cpp +++ b/rEFIt_UEFI/entry_scan/loader.cpp @@ -477,31 +477,7 @@ STATIC EFI_STATUS GetOSXVolumeName(LOADER_ENTRY *Entry) { Status = egLoadFile(Entry->Volume->RootDir, targetNameFile, (UINT8 **)&fileBuffer, &fileLen); if (!EFI_ERROR(Status)) { - // CHAR16 *tmpName; - // Create null terminated string - // targetString = (CHAR8*) A_llocateZeroPool(fileLen+1); - // CopyMem( (void*)targetString, (void*)fileBuffer, fileLen); - // DBG("found disk_label with contents:%s\n", targetString); - - // NOTE: Sothor - This was never run. If we need this correct it and - // uncomment it. if (Entry->LoaderType == OSTYPE_OSX) { - // INTN i; - // //remove occurence number. eg: "vol_name 2" --> "vol_name" - // i=fileLen-1; - // while ((i>0) && (targetString[i]>='0') && - // (targetString[i]<='9')) { - // i--; - // } - // if (targetString[i] == ' ') { - // targetString[i] = 0; - // } - // } - - // //Convert to Unicode - // tmpName = (CHAR16*)A_llocateZeroPool((fileLen+1)*2); - // AsciiStrToUnicodeStrS(targetString, tmpName, fileLen); - - if (Entry->DisplayedVolName.isEmpty()) { + if (Entry->DisplayedVolName.isEmpty()) { Entry->DisplayedVolName.strncpy(fileBuffer, fileLen); } Entry->Volume->osxVolumeName.strncpy(fileBuffer, fileLen); @@ -641,17 +617,6 @@ MacOsVersion GetOSVersion(int LoaderType, const EFI_GUID &APFSTargetUUID, } } - // if ( OSVersion.isEmpty() ) - // { - // if ( FileExists(Volume->RootDir, - // SWPrintf("\\%ls\\com.apple.installer\\BridgeVersion.plist", - // APFSTargetUUID.wc_str()).wc_str()) ) { - // OSVersion = "11.0"_XS8; - // // TODO so far, is there is a BridgeVersion.plist, it's - // version 11.0. Has to be improved with next releases. - // } - // } - // 1st stage - 2 // Check for plist - createinstallmedia/NetInstall if (OSVersion.isEmpty()) { @@ -833,10 +798,6 @@ MacOsVersion GetOSVersion(int LoaderType, const EFI_GUID &APFSTargetUUID, if (OSVersion.isEmpty()) { CONST CHAR8 *s; UINT8 *fileBuffer = NULL; - // CHAR8 *Res5 = (__typeof__(Res5))AllocateZeroPool(5); - // CHAR8 *Res6 = (__typeof__(Res6))AllocateZeroPool(6); - // CHAR8 *Res7 = (__typeof__(Res7))AllocateZeroPool(7); - // CHAR8 *Res8 = (__typeof__(Res8))AllocateZeroPool(8); UINTN fileLen = 0; XStringW InstallerLog; InstallerLog = L"\\Mac OS X Install Data\\ia.log"_XSW; // 10.7 @@ -852,8 +813,7 @@ MacOsVersion GetOSVersion(int LoaderType, const EFI_GUID &APFSTargetUUID, if (!EFI_ERROR(Status)) { XString8 targetString; targetString.strncpy((CHAR8 *)fileBuffer, fileLen); - // s = SearchString(targetString, fileLen, "Running OS Build: Mac - // OS X ", 27); + s = AsciiStrStr(targetString.c_str(), "Running OS Build: Mac OS X "); if (s[31] == ' ') { OSVersion.S8Printf("%c%c.%c\n", s[27], s[28], s[30]); @@ -1336,7 +1296,7 @@ STATIC LOADER_ENTRY *CreateLoaderEntry( } // DBG("OSIconName=%ls \n", OSIconName.wc_str()); Entry->OSName = OSIconName.subString(0, OSIconName.indexOf(',')); // TODO - // SmbiosList.AddReference(OSName.forgetDataWithoutFreeing(), true); + // SmbiosList.AddReference(OSName.forgetDataWithoutFreeing(), true); Entry->Title = FullTitle; if (Entry->Title.isEmpty() && Volume->VolLabel.notEmpty()) { @@ -1468,7 +1428,6 @@ void LOADER_ENTRY::AddDefaultMenu() { UINT64 VolumeSize; EFI_GUID Guid; XBool KernelIs64BitOnly; - XStringW OldOSName{OSName}; constexpr LString8 quietLitteral = "quiet"_XS8; constexpr LString8 splashLitteral = "splash"_XS8; @@ -1577,11 +1536,9 @@ void LOADER_ENTRY::AddDefaultMenu() { SubScreen->AddMenuCheck("Don't reboot on panic (debug=0x100)", OPT_DEBUG, 68); SubScreen->AddMenuCheck("Debug kexts (kextlog=0xffff)", OPT_KEXTLOG, 68); - if (gSettings.RtVariables.CsrActiveConfig == 0) { SubScreen->AddMenuCheck("No SIP", OSFLAG_NOSIP, 69); } - } else if (LoaderType == OSTYPE_LINEFI) { XBool Quiet = LoadOptions.contains(quietLitteral); XBool WithSplash = LoadOptions.contains(splashLitteral); @@ -1670,7 +1627,6 @@ void LOADER_ENTRY::AddDefaultMenu() { SubEntry->Title.SWPrintf("Run %ls", FileName.wc_str()); SubScreen->AddMenuEntry(SubEntry, true); } - OSName = OldOSName; } LOADER_ENTRY *AddLoaderEntry(IN CONST XStringW &LoaderPath, @@ -2134,7 +2090,6 @@ MacOsVersion GetMacOSVersionFromFolder(const EFI_FILE &dir, void ScanLoader(void) { - // DBG("Scanning loaders...\n"); DbgHeader("ScanLoader"); for (UINTN VolumeIndex = 0; VolumeIndex < Volumes.size(); VolumeIndex++) { @@ -2417,8 +2372,6 @@ void ScanLoader(void) } } - // DBG("Volume->ApfsTargetUUIDArray.size()=%zd\n", - // Volume->ApfsTargetUUIDArray.size()); if (Volume->ApfsTargetUUIDArray.size() > 0) { for (UINTN i = 0; i < Volume->ApfsTargetUUIDArray.size(); i++) { @@ -2442,9 +2395,7 @@ void ScanLoader(void) for (size_t VolumeIndex2 = 0; VolumeIndex2 < Volumes.size(); VolumeIndex2++) { REFIT_VOLUME *Volume2 = &Volumes[VolumeIndex2]; - // DBG("idx=%zu name %ls uuid=%s \n", VolumeIndex2, - // Volume2->VolName.wc_str(), - // Volume2->ApfsFileSystemUUID.c_str()); + if (Volume2->ApfsContainerUUID == targetVolume->ApfsContainerUUID) { if ((Volume2->ApfsRole & APPLE_APFS_VOLUME_ROLE_SYSTEM) != 0) { @@ -2471,9 +2422,7 @@ void ScanLoader(void) for (size_t VolumeIndex2 = 0; VolumeIndex2 < Volumes.size(); VolumeIndex2++) { REFIT_VOLUME *Volume2 = &Volumes[VolumeIndex2]; - // DBG("idx=%zu name %ls uuid=%s \n", VolumeIndex2, - // Volume2->VolName.wc_str(), - // Volume2->ApfsFileSystemUUID.c_str()); + if ((Volume2->ApfsRole & APPLE_APFS_VOLUME_ROLE_PREBOOT) != 0) { if (Volume2->ApfsContainerUUID == Volume->ApfsContainerUUID) { bootVolume = Volume2; @@ -2526,11 +2475,7 @@ void ScanLoader(void) FullTitleInstaller.SWPrintf("Mac OS Install"); } } - /*MacOsVersion macOSVersion = - GetMacOSVersionFromFolder(*Volume->RootDir, - SWPrintf("\\%s\\System\\Library\\CoreServices", - ApfsTargetUUID.c_str())); if ( macOSVersion.notEmpty() && macOSVersion < - MacOsVersion("11"_XS8) )*/ + FullTitle.SWCatf( " via %ls", Volume->getVolLabelOrOSXVolumeNameOrVolName().wc_str()); AddLoaderEntry(SWPrintf("\\%s\\System\\Library\\CoreServices\\boot.efi", @@ -2538,10 +2483,6 @@ void ScanLoader(void) NullXString8Array, FullTitle, LoaderTitle, Volume, NULL, OSTYPE_OSX, 0); - // Try to add Recovery APFS entry - /*macOSVersion = GetMacOSVersionFromFolder(*Volume->RootDir, - SWPrintf("\\%s", ApfsTargetUUID.c_str())); if ( macOSVersion.notEmpty() - && macOSVersion < MacOsVersion("11"_XS8) )*/ FullTitleRecovery.SWCatf( " via %ls", Volume->getVolLabelOrOSXVolumeNameOrVolName().wc_str()); if (!AddLoaderEntry( @@ -2557,9 +2498,6 @@ void ScanLoader(void) OSTYPE_RECOVERY, 0); } // Try to add macOS install entry - /*macOSVersion = GetMacOSVersionFromFolder(*Volume->RootDir, - SWPrintf("\\%s\\com.apple.installer", ApfsTargetUUID.c_str())); if ( - macOSVersion.notEmpty() && macOSVersion < MacOsVersion("11"_XS8) )*/ FullTitleInstaller.SWCatf( " via %ls", Volume->getVolLabelOrOSXVolumeNameOrVolName().wc_str()); @@ -2569,8 +2507,6 @@ void ScanLoader(void) if (FileExists(Volume->RootDir, installerPath)) { XString8 rootDmg = GetAuthRootDmg(*Volume->RootDir, installerPath); rootDmg.replaceAll("%20"_XS8, " "_XS8); - // while ( rootDmg.notEmpty() && rootDmg.startWith('/') ) - // rootDmg.deleteCharsAtPos(0, 1); rootDmg.replaceAll('/', '\\'); REFIT_VOLUME *targetInstallVolume = Volumes.getVolumeWithApfsContainerUUIDAndFileSystemUUID( @@ -2660,9 +2596,6 @@ void ScanLoader(void) if (MainMenu.Entries.ElementAt(idx) .getLOADER_ENTRY() ->APFSTargetUUID.notNull()) { - // DBG("Add in EntriesArrayTmp at index %zd Entry %zd : %ls\n", - // EntriesArrayTmp.size(), idx, - // MainMenu.Entries.ElementAt(idx).Title.wc_str()); EntriesArrayTmp.AddReference( new EntryIdx(idx, &MainMenu.Entries.ElementAt(idx)), true); } @@ -2822,15 +2755,9 @@ void ScanLoader(void) DBG("Entries list after ordering\n"); for (size_t idx = 0; idx < MainMenu.Entries.sizeIncludingHidden(); idx++) { - // if ( MainMenu.Entries.ElementAt(idx).getLOADER_ENTRY() ) { - // DBG(" Entry %zd : %ls%s\n", idx, - // MainMenu.Entries.ElementAt(idx).Title.wc_str(), - // MainMenu.Entries.ElementAt(idx).Hidden ? " (hidden)" : ""); - // }else{ DBG(" Entry %zd : %ls%s\n", idx, MainMenu.Entries.ElementAt(idx).Title.wc_str(), MainMenu.Entries.ElementAt(idx).Hidden ? " (hidden)" : ""); - // } } } From b321f57252846f8eb0600f68e0e3a51955b4919d Mon Sep 17 00:00:00 2001 From: YBronst Date: Wed, 25 Feb 2026 17:42:00 +0200 Subject: [PATCH 3/3] Update main.cpp --- rEFIt_UEFI/refit/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rEFIt_UEFI/refit/main.cpp b/rEFIt_UEFI/refit/main.cpp index 029d69261a..2c7ea2669f 100644 --- a/rEFIt_UEFI/refit/main.cpp +++ b/rEFIt_UEFI/refit/main.cpp @@ -1448,7 +1448,7 @@ void LOADER_ENTRY::StartLoader() pos = setKextAtPos(&kextArray, "IOSkywalkFamily.kext"_XS8, pos); pos = setKextAtPos(&kextArray, "FakePCIID.kext"_XS8, pos); pos = setKextAtPos(&kextArray, "FakePCIID_XHCIMux.kext"_XS8, pos); - pos = setKextAtPos(&kextArray, "AMDRyzenCPUPowerManagement.kext"_XS8, + pos = setKextAtPos(&kextArray, "AMDRyzenCPUPowerManagement.kext"_XS8, pos); pos = setKextAtPos(&kextArray, "SMCAMDProcessor.kext"_XS8, pos); pos = setKextAtPos(&kextArray, "AppleALC.kext"_XS8, pos);