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

Function process_file

win/X11/tile2x11.c:112–126  ·  view source on GitHub ↗

Open the given file, read & merge the colormap, convert the tiles. */

Source from the content-addressed store, hash-verified

110
111/* Open the given file, read & merge the colormap, convert the tiles. */
112static void
113process_file(char *fname)
114{
115 unsigned long count;
116
117 if (!fopen_text_file(fname, RDTMODE)) {
118 Fprintf(stderr, "can't open file \"%s\"\n", fname);
119 exit(1);
120 }
121 merge_text_colormap();
122 count = convert_tiles(&curr_tb, header.ntiles);
123 Fprintf(stdout, "%s: %lu tiles\n", fname, count);
124 header.ntiles += count;
125 fclose_text_file();
126}
127
128#ifdef USE_XPM
129static int

Callers 1

mainFunction · 0.85

Calls 4

fopen_text_fileFunction · 0.85
merge_text_colormapFunction · 0.85
convert_tilesFunction · 0.85
fclose_text_fileFunction · 0.85

Tested by

no test coverage detected