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

Function if

src/save.c:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109#endif
110
111 HUP if (iflags.window_inited) {
112 nh_uncompress(fq_save);
113 nhfp = open_savefile();
114 if (nhfp) {
115 close_nhfile(nhfp);
116 clear_nhwindow(WIN_MESSAGE);
117 There("seems to be an old save file.");
118 if (y_n("Overwrite the old file?") == 'n') {
119 nh_sfconvert(fq_save);
120 nh_compress(fq_save);
121 goto done;
122 }
123 }
124 }
125
126 HUP mark_synch(); /* flush any buffered screen output */
127

Callers

nothing calls this directly

Calls 6

nh_uncompressFunction · 0.85
open_savefileFunction · 0.85
close_nhfileFunction · 0.85
ThereFunction · 0.85
nh_sfconvertFunction · 0.85
nh_compressFunction · 0.85

Tested by

no test coverage detected