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

Function read_wizkit

src/files.c:2583–2601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2581}
2582
2583void
2584read_wizkit(void)
2585{
2586 FILE *fp;
2587
2588 if (!wizard || !(fp = fopen_wizkit_file()))
2589 return;
2590
2591 program_state.wizkit_wishing = 1;
2592 config_error_init(TRUE, "WIZKIT", FALSE);
2593
2594 parse_conf_file(fp, proc_wizkit_line);
2595 (void) fclose(fp);
2596
2597 config_error_done();
2598 program_state.wizkit_wishing = 0;
2599
2600 return;
2601}
2602
2603/* ---------- END WIZKIT FILE HANDLING ----------- */
2604

Callers 1

newgameFunction · 0.85

Calls 5

fopen_wizkit_fileFunction · 0.85
config_error_initFunction · 0.85
parse_conf_fileFunction · 0.85
fcloseFunction · 0.85
config_error_doneFunction · 0.85

Tested by

no test coverage detected