yet more Windows startup; also safestartup vestige
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum wp_ids { wp_tty = 1, wp_X11, wp_Qt, wp_mswin, wp_curses,
|
enum wp_ids { wp_tty = 1, wp_X11, wp_Qt, wp_mswin, wp_curses,
|
||||||
wp_chainin, wp_chainout, wp_safestartup, wp_shim,
|
wp_chainin, wp_chainout, wp_shim,
|
||||||
wp_hup, wp_guistubs, wp_ttystubs,
|
wp_hup, wp_guistubs, wp_ttystubs,
|
||||||
#if defined(AMIGA)
|
#if defined(AMIGA)
|
||||||
wp_amii, wp_amiv,
|
wp_amii, wp_amiv,
|
||||||
|
|||||||
@@ -424,6 +424,12 @@ scores_only(int argc, char **argv, const char *dir)
|
|||||||
(void) whoami(); /* set up default plname[] */
|
(void) whoami(); /* set up default plname[] */
|
||||||
#endif
|
#endif
|
||||||
prscore(argc, argv);
|
prscore(argc, argv);
|
||||||
|
#ifdef MSWIN_GRAPHICS
|
||||||
|
/* NetHackW can also support WINDOWPORT(curses) now, so check */
|
||||||
|
if (WINDOWPORT(mswin)) {
|
||||||
|
wait_synch();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
nh_terminate(EXIT_SUCCESS); /* bypass opt_terminate() */
|
nh_terminate(EXIT_SUCCESS); /* bypass opt_terminate() */
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
|
|||||||
+4
-6
@@ -7331,12 +7331,10 @@ initoptions_finish(void)
|
|||||||
* Option processing can take place before a user-decided WindowPort
|
* Option processing can take place before a user-decided WindowPort
|
||||||
* is even initialized, so check for that too.
|
* is even initialized, so check for that too.
|
||||||
*/
|
*/
|
||||||
if (!WINDOWPORT(safestartup)) {
|
if (iflags.hilite_delta && !wc2_supported("statushilites")) {
|
||||||
if (iflags.hilite_delta && !wc2_supported("statushilites")) {
|
raw_printf("Status highlighting not supported for %s interface.",
|
||||||
raw_printf("Status highlighting not supported for %s interface.",
|
windowprocs.name);
|
||||||
windowprocs.name);
|
iflags.hilite_delta = 0;
|
||||||
iflags.hilite_delta = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
update_rest_on_space();
|
update_rest_on_space();
|
||||||
|
|||||||
+1
-1
@@ -333,7 +333,7 @@ choose_windows(const char *s)
|
|||||||
if (tmps)
|
if (tmps)
|
||||||
free((genericptr_t) tmps) /*, tmps = 0*/ ;
|
free((genericptr_t) tmps) /*, tmps = 0*/ ;
|
||||||
|
|
||||||
if (windowprocs.win_raw_print == def_raw_print || WINDOWPORT(safestartup))
|
if (windowprocs.win_raw_print == def_raw_print)
|
||||||
nh_terminate(EXIT_SUCCESS);
|
nh_terminate(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
|||||||
if (getcwd(orgdir, sizeof orgdir) == (char *) 0)
|
if (getcwd(orgdir, sizeof orgdir) == (char *) 0)
|
||||||
error("NetHack: current directory path too long");
|
error("NetHack: current directory path too long");
|
||||||
#endif
|
#endif
|
||||||
|
getreturn_enabled = TRUE;
|
||||||
initoptions_init(); // This allows OPTIONS in syscf on Windows.
|
initoptions_init(); // This allows OPTIONS in syscf on Windows.
|
||||||
set_default_prefix_locations(
|
set_default_prefix_locations(
|
||||||
argv[0]); /* must be re-done after initoptions_init()
|
argv[0]); /* must be re-done after initoptions_init()
|
||||||
@@ -251,10 +252,10 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
|||||||
// iflags.windowtype_deferred = TRUE;
|
// iflags.windowtype_deferred = TRUE;
|
||||||
|
|
||||||
program_state.early_options = 1;
|
program_state.early_options = 1;
|
||||||
|
/* if (GUILaunched || IsDebuggerPresent()) */
|
||||||
early_options(&argc, &argv, &dir);
|
early_options(&argc, &argv, &dir);
|
||||||
program_state.early_options = 0;
|
program_state.early_options = 0;
|
||||||
/* if (GUILaunched || IsDebuggerPresent()) */
|
|
||||||
getreturn_enabled = TRUE;
|
|
||||||
|
|
||||||
initoptions();
|
initoptions();
|
||||||
#if defined(CHDIR) && !defined(NOCWD_ASSUMPTIONS)
|
#if defined(CHDIR) && !defined(NOCWD_ASSUMPTIONS)
|
||||||
|
|||||||
Reference in New Issue
Block a user