| 1562 | } |
| 1563 | |
| 1564 | void refreshapplymenu(void *menu, bool init) |
| 1565 | { |
| 1566 | gmenu *m = (gmenu *) menu; |
| 1567 | if(!m || (!init && needsapply.length() != m->items.length()-3)) return; |
| 1568 | m->items.deletecontents(); |
| 1569 | loopv(needsapply) m->items.add(new mitemtext(m, newstring(needsapply[i]), NULL, NULL, NULL)); |
| 1570 | m->items.add(new mitemtext(m, newstring(""), NULL, NULL, NULL)); |
| 1571 | m->items.add(new mitemtext(m, newstring("Yes"), newstring("resetgl"), NULL, NULL)); |
| 1572 | m->items.add(new mitemtext(m, newstring("No"), newstring("echo [..restart AssaultCube to apply the new settings]"), NULL, NULL)); |
| 1573 | if(init) m->menusel = m->items.length()-2; // select OK |
| 1574 | } |
nothing calls this directly
no test coverage detected