shk followmsg moved to instance globals. early_init introduced.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -39,7 +39,7 @@ main(void)
|
||||
int argc = 1;
|
||||
boolean resuming = FALSE; /* assume new game */
|
||||
|
||||
sys_early_init();
|
||||
early_init();
|
||||
windowprocs = mac_procs;
|
||||
InitMac();
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ char *argv[];
|
||||
{
|
||||
boolean resuming;
|
||||
|
||||
sys_early_init();
|
||||
early_init();
|
||||
resuming = pcmain(argc, argv);
|
||||
moveloop(resuming);
|
||||
nethack_exit(EXIT_SUCCESS);
|
||||
|
||||
@@ -58,7 +58,7 @@ char *argv[];
|
||||
boolean resuming = FALSE; /* assume new game */
|
||||
boolean plsel_once = FALSE;
|
||||
|
||||
sys_early_init();
|
||||
early_init();
|
||||
|
||||
#if defined(__APPLE__)
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ char *argv[];
|
||||
privon();
|
||||
#endif
|
||||
|
||||
sys_early_init();
|
||||
early_init();
|
||||
|
||||
atexit(byebye);
|
||||
g.hname = argv[0];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user