MCPcopy Index your code
hub / github.com/assaultcube/AC / listoptions

Function listoptions

source/src/command.cpp:1756–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1754#ifndef STANDALONE
1755
1756void listoptions(char *s)
1757{
1758 extern const char *menufilesortorders[], *texturestacktypes[], *soundprioritynames[], *soundcategories[];
1759 const char *optionnames[] = { "entities", "ents", "weapons", "teamnames", "teamnames-abbrv", "punctuations", "crosshairnames", "menufilesortorders", "texturestacktypes", "cubetypes", "soundpriorities", "soundcategories", "" };
1760 const char **optionlists[] = { optionnames, entnames + 1, entnames + 1, gunnames, teamnames, teamnames_s, punctnames, crosshairnames, menufilesortorders, texturestacktypes, cubetypenames, soundprioritynames, soundcategories };
1761 const char **listp = optionlists[getlistindex(s, optionnames, true, -1) + 1];
1762 commandret = conc(listp, -1, true);
1763}
1764COMMAND(listoptions, "s");
1765
1766#endif

Callers

nothing calls this directly

Calls 2

getlistindexFunction · 0.85
concFunction · 0.85

Tested by

no test coverage detected