Changed references from hname to g.hname.
This commit is contained in:
+2
-2
@@ -43,12 +43,12 @@ main(void)
|
|||||||
windowprocs = mac_procs;
|
windowprocs = mac_procs;
|
||||||
InitMac();
|
InitMac();
|
||||||
|
|
||||||
hname = "Mac Hack";
|
g.hname = "Mac Hack";
|
||||||
hackpid = getpid();
|
hackpid = getpid();
|
||||||
|
|
||||||
setrandom();
|
setrandom();
|
||||||
initoptions();
|
initoptions();
|
||||||
init_nhwindows(&argc, (char **) &hname);
|
init_nhwindows(&argc, (char **) &g.hname);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* It seems you really want to play.
|
* It seems you really want to play.
|
||||||
|
|||||||
+4
-4
@@ -131,11 +131,11 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
|||||||
#ifdef TOS
|
#ifdef TOS
|
||||||
long clock_time;
|
long clock_time;
|
||||||
if (*argv[0]) { /* only a CLI can give us argv[0] */
|
if (*argv[0]) { /* only a CLI can give us argv[0] */
|
||||||
hname = argv[0];
|
g.hname = argv[0];
|
||||||
run_from_desktop = FALSE;
|
run_from_desktop = FALSE;
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
hname = "NetHack"; /* used for syntax messages */
|
g.hname = "NetHack"; /* used for syntax messages */
|
||||||
|
|
||||||
choose_windows(DEFAULT_WINDOW_SYS);
|
choose_windows(DEFAULT_WINDOW_SYS);
|
||||||
|
|
||||||
@@ -675,12 +675,12 @@ nhusage()
|
|||||||
*/
|
*/
|
||||||
(void) Sprintf(buf2, "\nUsage:\n%s [-d dir] -s [-r race] [-p profession] "
|
(void) Sprintf(buf2, "\nUsage:\n%s [-d dir] -s [-r race] [-p profession] "
|
||||||
"[maxrank] [name]...\n or",
|
"[maxrank] [name]...\n or",
|
||||||
hname);
|
g.hname);
|
||||||
ADD_USAGE(buf2);
|
ADD_USAGE(buf2);
|
||||||
|
|
||||||
(void) Sprintf(
|
(void) Sprintf(
|
||||||
buf2, "\n%s [-d dir] [-u name] [-r race] [-p profession] [-[DX]]",
|
buf2, "\n%s [-d dir] [-u name] [-r race] [-p profession] [-[DX]]",
|
||||||
hname);
|
g.hname);
|
||||||
ADD_USAGE(buf2);
|
ADD_USAGE(buf2);
|
||||||
#ifdef NEWS
|
#ifdef NEWS
|
||||||
ADD_USAGE(" [-n]");
|
ADD_USAGE(" [-n]");
|
||||||
|
|||||||
+2
-2
@@ -47,8 +47,8 @@ char *argv[];
|
|||||||
sys_early_init();
|
sys_early_init();
|
||||||
|
|
||||||
atexit(byebye);
|
atexit(byebye);
|
||||||
hname = argv[0];
|
g.hname = argv[0];
|
||||||
hname = vms_basename(hname); /* name used in 'usage' type messages */
|
g.hname = vms_basename(g.hname); /* name used in 'usage' type messages */
|
||||||
hackpid = getpid();
|
hackpid = getpid();
|
||||||
(void) umask(0);
|
(void) umask(0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user