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

Function ParseAddOptionMenu

source/common/menu/menudef.cpp:1242–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240//=============================================================================
1241
1242static void ParseAddOptionMenu(FScanner &sc)
1243{
1244 sc.MustGetString();
1245
1246 DMenuDescriptor **pOld = MenuDescriptors.CheckKey(sc.String);
1247 if (pOld == nullptr || *pOld == nullptr || !(*pOld)->IsKindOf(RUNTIME_CLASS(DOptionMenuDescriptor)))
1248 {
1249 sc.ScriptError("%s is not an option menu that can be extended", sc.String);
1250 return;
1251 }
1252 ParseOptionMenuBody(sc, (DOptionMenuDescriptor*)(*pOld), GetInsertIndex(sc, *pOld));
1253}
1254
1255
1256//=============================================================================

Callers 1

M_ParseMenuDefsFunction · 0.85

Calls 6

ParseOptionMenuBodyFunction · 0.85
GetInsertIndexFunction · 0.85
MustGetStringMethod · 0.80
IsKindOfMethod · 0.80
CheckKeyMethod · 0.45
ScriptErrorMethod · 0.45

Tested by

no test coverage detected