| 403 | in the high scores file ('record') belonging to particular characters; |
| 404 | nethack will end after doing so without starting play */ |
| 405 | ATTRNORETURN staticfn void |
| 406 | scores_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: |
no test coverage detected