MCPcopy Create free account
hub / github.com/ZDoom/Raze / DeinitMenus

Function DeinitMenus

source/common/menu/menudef.cpp:139–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138
139void 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
162FTextureID GetMenuTexture(const char* const name)
163{

Callers 1

GameMainFunction · 0.85

Calls 4

M_ClearMenusFunction · 0.85
NextPairMethod · 0.45
DestroyMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected