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:
nethack.rankin
2002-02-24 06:51:36 +00:00
parent 163f394fbe
commit 34f682205c
+3 -1
View File
@@ -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