MCPcopy Create free account
hub / github.com/NetHack/NetHack / cnf_line_LEVELDIR

Function cnf_line_LEVELDIR

src/cfgfiles.c:652–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652staticfn boolean
653cnf_line_LEVELDIR(char *bufp)
654{
655#ifdef NOCWD_ASSUMPTIONS
656 adjust_prefix(bufp, LEVELPREFIX);
657#else /*NOCWD_ASSUMPTIONS*/
658#ifdef MICRO
659 if (strlen(bufp) >= PATHLEN)
660 bufp[PATHLEN - 1] = '\0';
661 Strcpy(g.permbones, bufp);
662 if (!ramdisk_specified || !*levels)
663 Strcpy(levels, bufp);
664 gr.ramdisk = (strcmp(g.permbones, levels) != 0);
665#else /* MICRO */
666 nhUse(bufp);
667#endif /* MICRO */
668#endif /*NOCWD_ASSUMPTIONS*/
669 return TRUE;
670}
671
672staticfn boolean
673cnf_line_SAVEDIR(char *bufp)

Callers

nothing calls this directly

Calls 1

adjust_prefixFunction · 0.85

Tested by

no test coverage detected