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

Function ghack_save_game

outdated/win/gnome/gnmain.c:59–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static void
60ghack_save_game(GtkWidget *widget, int button)
61{
62 gtk_widget_hide(widget);
63 if (button == 0) {
64 if (dosave0()) {
65 /* make sure they see the Saving message */
66 display_nhwindow(WIN_MESSAGE, TRUE);
67 gnome_exit_nhwindows("Be seeing you...");
68 clearlocks();
69 gtk_exit(0);
70 } else
71 (void) doredraw();
72 }
73}
74
75void
76ghack_save_game_cb(GtkWidget *widget, gpointer data)

Callers

nothing calls this directly

Calls 4

dosave0Function · 0.85
gnome_exit_nhwindowsFunction · 0.85
clearlocksFunction · 0.85
doredrawFunction · 0.85

Tested by

no test coverage detected