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

Function SubMenuCustomDevices

rEFIt_UEFI/refit/menu.cpp:2270–2309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2268}
2269
2270REFIT_ABSTRACT_MENU_ENTRY* SubMenuCustomDevices()
2271{
2272 REFIT_MENU_ITEM_OPTIONS *Entry;
2273 REFIT_MENU_SCREEN *SubScreen;
2274
2275 UINT32 DevAddr, OldDevAddr = 0;
2276
2277 Entry = newREFIT_MENU_ITEM_OPTIONS(&SubScreen, ActionEnter, SCREEN_DEVICES, "Custom properties->"_XS8);
2278
2279 if (gSettings.ArbProperties) {
2280 DEV_PROPERTY *Prop = gSettings.ArbProperties;
2281 if (Prop && (Prop->Device == 0))
2282 {
2283 DEV_PROPERTY *Props = NULL;
2284 while (Prop) {
2285 SubScreen->AddMenuInfo_f("------------");
2286 SubScreen->AddMenuInfo_f("%s", Prop->Label);
2287 Props = Prop->Child;
2288 while (Props) {
2289 CreateMenuProps(SubScreen, Props);
2290 Props = Props->Next;
2291 }
2292 Prop = Prop->Next;
2293 }
2294 }
2295 while (Prop) {
2296 DevAddr = Prop->Device;
2297 if (DevAddr != 0 && DevAddr != OldDevAddr) {
2298 OldDevAddr = DevAddr;
2299 SubScreen->AddMenuInfo_f("------------");
2300 SubScreen->AddMenuInfo_f("%s", Prop->Label);
2301 CreateMenuProps(SubScreen, Prop);
2302 }
2303 Prop = Prop->Next;
2304 }
2305 }
2306 SubScreen->AddMenuEntry(&MenuEntryReturn, false);
2307 Entry->SubScreen = SubScreen;
2308 return Entry;
2309}
2310
2311
2312REFIT_ABSTRACT_MENU_ENTRY* SubMenuPCI()

Callers 1

SubMenuPCIFunction · 0.85

Calls 4

CreateMenuPropsFunction · 0.85
AddMenuInfo_fMethod · 0.80
AddMenuEntryMethod · 0.80

Tested by

no test coverage detected