shk followmsg moved to instance globals. early_init introduced.

This commit is contained in:
Bart House
2018-12-25 17:46:52 -08:00
parent cfb0e3ef78
commit ed096f74c3
14 changed files with 23 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ MAIN(int argc, char **argv)
char *dir;
boolean resuming = FALSE; /* assume new game */
sys_early_init();
early_init();
dir = nh_getenv("NETHACKDIR");
if (!dir)

View File

@@ -39,7 +39,7 @@ main(void)
int argc = 1;
boolean resuming = FALSE; /* assume new game */
sys_early_init();
early_init();
windowprocs = mac_procs;
InitMac();

View File

@@ -77,7 +77,7 @@ char *argv[];
{
boolean resuming;
sys_early_init();
early_init();
resuming = pcmain(argc, argv);
moveloop(resuming);
nethack_exit(EXIT_SUCCESS);

View File

@@ -58,7 +58,7 @@ char *argv[];
boolean resuming = FALSE; /* assume new game */
boolean plsel_once = FALSE;
sys_early_init();
early_init();
#if defined(__APPLE__)
{

View File

@@ -44,7 +44,7 @@ char *argv[];
privon();
#endif
sys_early_init();
early_init();
atexit(byebye);
g.hname = argv[0];

View File

@@ -42,7 +42,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine,
char buf[NHSTR_BUFSIZE];
boolean resuming;
sys_early_init();
early_init();
/* ensure that we don't access violate on a panic() */
windowprocs.win_raw_print = mswin_raw_print;

View File

@@ -97,7 +97,7 @@ char *argv[];
if (!GUILaunched)
windowprocs.win_nhgetch = windows_console_custom_nhgetch;
sys_early_init();
early_init();
#ifdef _MSC_VER
# ifdef DEBUG
/* set these appropriately for VS debugging */