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

Function initialize_semap_basenames

src/sounds.c:1980–1992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978static boolean basenames_initialized = FALSE;
1979
1980staticfn void
1981initialize_semap_basenames(void)
1982{
1983 int i;
1984
1985 /* to avoid things getting out of sequence; seid an index to the name */
1986 for (i = 1; i < SIZE(se_mappings_init); ++i) {
1987 if (se_mappings_init[i].seid > 0
1988 && se_mappings_init[i].seid < SIZE(semap_basenames))
1989 semap_basenames[se_mappings_init[i].seid]
1990 = se_mappings_init[i].base_filename;
1991 }
1992}
1993
1994char *
1995get_sound_effect_filename(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected