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

Function gnome_init_nhwindows

outdated/win/gnome/gnbind.c:68–91  ·  view source on GitHub ↗

init_nhwindows(int* argcp, char** argv) -- Initialize the windows used by NetHack. This can also create the standard windows listed at the top, but does not display them. -- Any commandline arguments relevant to the windowport should be interpreted, and *argcp and *argv should be changed to

Source from the content-addressed store, hash-verified

66 ** windows? Or at least all but WIN_INFO? -dean
67*/
68void
69gnome_init_nhwindows(int *argc, char **argv)
70{
71 /* Main window */
72 ghack_init_main_window(*argc, argv);
73 ghack_init_signals();
74
75#ifdef HACKDIR
76 // if (ghack_init_glyphs(HACKDIR "/t32-1024.xpm"))
77 if (ghack_init_glyphs(HACKDIR "/x11tiles"))
78 g_error("ERROR: Could not initialize glyphs.\n");
79#else
80#error HACKDIR is not defined!
81#endif
82
83 // gnome/gtk is not reentrant
84 set_option_mod_status("ignintr", set_gameview);
85 flags.ignintr = TRUE;
86
87 iflags.window_inited = TRUE;
88
89 /* gnome-specific window creation */
90 WIN_WORN = gnome_create_nhwindow(NHW_WORN);
91}
92
93/* Do a window-port specific player type selection. If player_selection()
94 offers a Quit option, it is its responsibility to clean up and terminate

Callers

nothing calls this directly

Calls 5

ghack_init_main_windowFunction · 0.85
ghack_init_signalsFunction · 0.85
ghack_init_glyphsFunction · 0.85
set_option_mod_statusFunction · 0.85
gnome_create_nhwindowFunction · 0.85

Tested by

no test coverage detected