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

Function mswin_putmsghistory

win/win32/mswproc.c:2133–2149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2131}
2132
2133void
2134mswin_putmsghistory(const char *msg, boolean restoring)
2135{
2136 BOOL save_sound_opt;
2137
2138 UNREFERENCED_PARAMETER(restoring);
2139
2140 if (!msg)
2141 return; /* end of message history restore */
2142 save_sound_opt = GetNHApp()->bNoSounds;
2143 GetNHApp()->bNoSounds =
2144 TRUE; /* disable sounds while restoring message history */
2145 mswin_putstr_ex(WIN_MESSAGE, ATR_NONE, msg, 0);
2146 clear_nhwindow(WIN_MESSAGE); /* it is in fact end-of-turn indication so
2147 each message will print on the new line */
2148 GetNHApp()->bNoSounds = save_sound_opt; /* restore sounds option */
2149}
2150
2151void
2152mswin_main_loop(void)

Callers

nothing calls this directly

Calls 2

GetNHAppFunction · 0.70
mswin_putstr_exFunction · 0.70

Tested by

no test coverage detected