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

Function scores_only

src/earlyarg.c:405–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 in the high scores file ('record') belonging to particular characters;
404 nethack will end after doing so without starting play */
405ATTRNORETURN staticfn void
406scores_only(int argc, char **argv, const char *dir)
407{
408 /* do this now rather than waiting for final termination, in case there
409 is an error summary coming */
410 config_error_done();
411
412#ifdef CHDIR
413 chdirx(dir, FALSE);
414#else
415 nhUse(dir);
416#endif
417#ifdef SYSCF
418 iflags.initoptions_noterminate = TRUE;
419 initoptions(); /* sysconf options affect whether panictrace is enabled */
420 iflags.initoptions_noterminate = FALSE;
421#endif
422#ifdef PANICTRACE
423 ARGV0 = gh.hname; /* save for possible stack trace */
424#ifndef NO_SIGNAL
425 panictrace_setsignals(TRUE);
426#endif
427#endif
428#ifdef UNIX
429 (void) whoami(); /* set up default plname[] */
430#endif
431 prscore(argc, argv);
432#ifdef MSWIN_GRAPHICS
433 /* NetHackW can also support WINDOWPORT(curses) now, so check */
434 if (WINDOWPORT(mswin)) {
435 wait_synch();
436 }
437#endif
438
439 nh_terminate(EXIT_SUCCESS); /* bypass opt_terminate() */
440 /*NOTREACHED*/
441}
442
443/*
444 * Returns:

Callers 1

early_optionsFunction · 0.85

Calls 8

config_error_doneFunction · 0.85
initoptionsFunction · 0.85
panictrace_setsignalsFunction · 0.85
prscoreFunction · 0.85
wait_synchFunction · 0.85
nh_terminateFunction · 0.70
chdirxFunction · 0.50
whoamiFunction · 0.50

Tested by

no test coverage detected