| 137 | |
| 138 | |
| 139 | void DeinitMenus() |
| 140 | { |
| 141 | M_ClearMenus(); |
| 142 | { |
| 143 | FOptionMap::Iterator it(OptionValues); |
| 144 | |
| 145 | FOptionMap::Pair *pair; |
| 146 | |
| 147 | while (it.NextPair(pair)) |
| 148 | { |
| 149 | delete pair->Value; |
| 150 | pair->Value = nullptr; |
| 151 | } |
| 152 | } |
| 153 | if (menuDelegate) |
| 154 | { |
| 155 | menuDelegate->Destroy(); |
| 156 | menuDelegate = nullptr; |
| 157 | } |
| 158 | MenuDescriptors.Clear(); |
| 159 | OptionValues.Clear(); |
| 160 | } |
| 161 | |
| 162 | FTextureID GetMenuTexture(const char* const name) |
| 163 | { |
no test coverage detected