Windows:OPTIONS=windowtype:tty NetHackW.exe issue
This commit is contained in:
+10
-1
@@ -192,8 +192,8 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
set_emergency_io();
|
|
||||||
#ifndef MSWIN_GRAPHICS
|
#ifndef MSWIN_GRAPHICS
|
||||||
|
set_emergency_io();
|
||||||
early_init(argc, argv); /* already in WinMain for MSWIN_GRAPHICS */
|
early_init(argc, argv); /* already in WinMain for MSWIN_GRAPHICS */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -243,6 +243,15 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
|||||||
windowtype = "tty";
|
windowtype = "tty";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#ifdef MSWIN_GRAPHICS
|
||||||
|
if (!strcmp(windowtype, "tty"))
|
||||||
|
windowtype = "mswin";
|
||||||
|
#endif
|
||||||
|
#ifdef TTY_GRAPHICS
|
||||||
|
if (!strcmp(windowtype, "mswin"))
|
||||||
|
windowtype = "tty";
|
||||||
|
#endif
|
||||||
|
|
||||||
choose_windows(
|
choose_windows(
|
||||||
windowtype); /* sets all the window port function pointers */
|
windowtype); /* sets all the window port function pointers */
|
||||||
|
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
|||||||
windowprocs.win_raw_print_bold = mswin_raw_print_bold;
|
windowprocs.win_raw_print_bold = mswin_raw_print_bold;
|
||||||
windowprocs.win_nhgetch = mswin_nhgetch;
|
windowprocs.win_nhgetch = mswin_nhgetch;
|
||||||
windowprocs.win_wait_synch = mswin_wait_synch;
|
windowprocs.win_wait_synch = mswin_wait_synch;
|
||||||
|
windowprocs.win_number_pad = mswin_number_pad;
|
||||||
|
|
||||||
/* let nethackw_main do the argument processing */
|
/* let nethackw_main do the argument processing */
|
||||||
nethackw_main(argc, argv);
|
nethackw_main(argc, argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user