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

Function do_deferred_showpaths

src/files.c:3089–3114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3087/* ---------- OTHER ----------- */
3088
3089ATTRNORETURN void
3090do_deferred_showpaths(int code)
3091{
3092 gd.deferred_showpaths = FALSE;
3093 reveal_paths(code);
3094
3095 /* cleanup before heading to an exit */
3096 freedynamicdata();
3097 dlb_cleanup();
3098 l_nhcore_done();
3099
3100#ifdef UNIX
3101 after_opt_showpaths(gd.deferred_showpaths_dir);
3102#else
3103#ifndef WIN32
3104#ifdef CHDIR
3105 chdirx(gd.deferred_showpaths_dir, 0);
3106#endif
3107#endif
3108#if defined(WIN32) || defined(MICRO) || defined(OS2)
3109 nethack_exit(EXIT_SUCCESS);
3110#else
3111 exit(EXIT_SUCCESS);
3112#endif
3113#endif
3114}
3115#endif /* !SFCTOOL */
3116
3117#ifdef DEBUG

Callers 2

initoptionsFunction · 0.85
assure_syscf_fileFunction · 0.85

Calls 7

reveal_pathsFunction · 0.85
freedynamicdataFunction · 0.85
dlb_cleanupFunction · 0.85
l_nhcore_doneFunction · 0.85
after_opt_showpathsFunction · 0.70
chdirxFunction · 0.50
nethack_exitFunction · 0.50

Tested by

no test coverage detected