wizkit enhancement
Allow a WIZKIT file name to be specified via the environment. If none is specified there, get it from the run-time config file.
This commit is contained in:
+3
-1
@@ -1,4 +1,4 @@
|
|||||||
/* SCCS Id: @(#)files.c 3.4 2000/04/27 */
|
/* SCCS Id: @(#)files.c 3.4 2002/02/23 */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -1604,6 +1604,8 @@ fopen_wizkit_file()
|
|||||||
char *envp;
|
char *envp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
envp = nh_getenv("WIZKIT");
|
||||||
|
if (envp && *envp) Strcpy(wizkit, envp);
|
||||||
if (!wizkit[0]) return (FILE *)0;
|
if (!wizkit[0]) return (FILE *)0;
|
||||||
|
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
|
|||||||
Reference in New Issue
Block a user