MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / SubMenuBootPatches

Function SubMenuBootPatches

rEFIt_UEFI/refit/menu.cpp:1939–1960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1937}
1938
1939REFIT_ABSTRACT_MENU_ENTRY* SubMenuBootPatches()
1940{
1941 REFIT_MENU_ITEM_OPTIONS *Entry;
1942 REFIT_MENU_SCREEN *SubScreen;
1943 REFIT_INPUT_DIALOG *InputBootArgs;
1944
1945 Entry = newREFIT_MENU_ITEM_OPTIONS(&SubScreen, ActionEnter, SCREEN_BOOTER, "Custom booter patches->"_XS8);
1946
1947 for (size_t Index = 0; Index < gSettings.KernelAndKextPatches.BootPatches.size(); Index++) {
1948 InputBootArgs = new REFIT_INPUT_DIALOG;
1949 InputBootArgs->Title.SWPrintf("%90s", gSettings.KernelAndKextPatches.BootPatches[Index].Label.c_str());
1950// InputBootArgs->Tag = TAG_INPUT;
1951 InputBootArgs->Row = 0xFFFF; //cursor
1952 InputBootArgs->Item = &(gSettings.KernelAndKextPatches.BootPatches[Index].MenuItem);
1953 InputBootArgs->AtClick = ActionEnter;
1954 InputBootArgs->AtRightClick = ActionDetails;
1955 SubScreen->AddMenuEntry(InputBootArgs, true);
1956 }
1957
1958 SubScreen->AddMenuEntry(&MenuEntryReturn, false);
1959 return Entry;
1960}
1961
1962REFIT_ABSTRACT_MENU_ENTRY* SubMenuBinaries()
1963{

Callers 1

SubMenuBinariesFunction · 0.85

Calls 5

SWPrintfMethod · 0.80
AddMenuEntryMethod · 0.80
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected