Fix windows-port crash on startup when showvers option is enabled

This commit is contained in:
St4ckC00ki3
2026-04-17 17:59:03 +08:00
parent 3d5b3e35ea
commit ea6ae3359e

View File

@@ -197,11 +197,11 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
#endif
#endif
gh.hname = "NetHack"; /* used for syntax messages */
set_emergency_io();
#ifndef MSWIN_GRAPHICS
early_init(argc, argv); /* already in WinMain for MSWIN_GRAPHICS */
#endif
gh.hname = "NetHack"; /* used for syntax messages */
set_default_prefix_locations(
argv[0]); /* must be re-done after initoptions_init()
* which clears out gp.fqn_prefix[] */