| 3087 | /* ---------- OTHER ----------- */ |
| 3088 | |
| 3089 | ATTRNORETURN void |
| 3090 | do_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 |
no test coverage detected