| 2268 | } |
| 2269 | |
| 2270 | REFIT_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 | |
| 2312 | REFIT_ABSTRACT_MENU_ENTRY* SubMenuPCI() |
no test coverage detected