MCPcopy Index your code
hub / github.com/NetHack/NetHack / enhance_menu_text

Function enhance_menu_text

src/options.c:10154–10180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10152}
10153
10154staticfn void
10155enhance_menu_text(
10156 char *buf,
10157 size_t sz,
10158 int whichpass UNUSED,
10159 boolean *bool_p,
10160 struct allopt_t *thisopt)
10161{
10162 size_t nowsz, availsz;
10163
10164 if (!buf)
10165 return;
10166 nowsz = strlen(buf) + 1;
10167 availsz = sz - nowsz;
10168
10169#if 0 /*#ifdef TTY_PERM_INVENT*/
10170 if (bool_p == &iflags.perm_invent && WINDOWPORT(tty)) {
10171 if (thisopt->setwhere == set_gameview)
10172 Snprintf(eos(buf), availsz, " *terminal size is too small");
10173 }
10174#else
10175 nhUse(availsz);
10176 nhUse(bool_p);
10177 nhUse(thisopt);
10178#endif
10179 return;
10180}
10181
10182void
10183heed_all_options(void)

Callers 1

dosetFunction · 0.85

Calls 1

eosFunction · 0.85

Tested by

no test coverage detected