Changed references from hname to g.hname.

This commit is contained in:
Bart House
2018-12-22 14:51:26 -08:00
parent c9565d4ef6
commit 9567526586
3 changed files with 8 additions and 8 deletions

View File

@@ -43,12 +43,12 @@ main(void)
windowprocs = mac_procs;
InitMac();
hname = "Mac Hack";
g.hname = "Mac Hack";
hackpid = getpid();
setrandom();
initoptions();
init_nhwindows(&argc, (char **) &hname);
init_nhwindows(&argc, (char **) &g.hname);
/*
* It seems you really want to play.

View File

@@ -131,11 +131,11 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
#ifdef TOS
long clock_time;
if (*argv[0]) { /* only a CLI can give us argv[0] */
hname = argv[0];
g.hname = argv[0];
run_from_desktop = FALSE;
} else
#endif
hname = "NetHack"; /* used for syntax messages */
g.hname = "NetHack"; /* used for syntax messages */
choose_windows(DEFAULT_WINDOW_SYS);
@@ -675,12 +675,12 @@ nhusage()
*/
(void) Sprintf(buf2, "\nUsage:\n%s [-d dir] -s [-r race] [-p profession] "
"[maxrank] [name]...\n or",
hname);
g.hname);
ADD_USAGE(buf2);
(void) Sprintf(
buf2, "\n%s [-d dir] [-u name] [-r race] [-p profession] [-[DX]]",
hname);
g.hname);
ADD_USAGE(buf2);
#ifdef NEWS
ADD_USAGE(" [-n]");

View File

@@ -47,8 +47,8 @@ char *argv[];
sys_early_init();
atexit(byebye);
hname = argv[0];
hname = vms_basename(hname); /* name used in 'usage' type messages */
g.hname = argv[0];
g.hname = vms_basename(g.hname); /* name used in 'usage' type messages */
hackpid = getpid();
(void) umask(0);