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

Function gnome_askname

outdated/win/gnome/gnbind.c:347–363  ·  view source on GitHub ↗

Ask the user for a player name. */

Source from the content-addressed store, hash-verified

345
346/* Ask the user for a player name. */
347void
348gnome_askname()
349{
350 int ret;
351
352 g_message("Asking name....");
353
354 /* Ask for a name and stuff the response into plname, a nethack global */
355 ret = ghack_ask_string_dialog("What is your name?", "gandalf",
356 "GnomeHack", svp.plname);
357
358 /* Quit if they want to quit... */
359 if (ret == -1) {
360 clearlocks();
361 gtk_exit(0);
362 }
363}
364
365/* Does window event processing (e.g. exposure events).
366 A noop for the tty and X window-ports.

Callers

nothing calls this directly

Calls 2

ghack_ask_string_dialogFunction · 0.85
clearlocksFunction · 0.85

Tested by

no test coverage detected