diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/callproc.c b/src/callproc.c index 08fa6e97722..05048576ce9 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -1584,13 +1584,14 @@ init_callproc (void) | |||
| 1584 | sh = getenv ("SHELL"); | 1584 | sh = getenv ("SHELL"); |
| 1585 | Vshell_file_name = build_string (sh ? sh : "/bin/sh"); | 1585 | Vshell_file_name = build_string (sh ? sh : "/bin/sh"); |
| 1586 | 1586 | ||
| 1587 | #ifdef DOS_NT | 1587 | Lisp_Object gamedir = Qnil; |
| 1588 | Vshared_game_score_directory = Qnil; | 1588 | if (PATH_GAME) |
| 1589 | #else | 1589 | { |
| 1590 | Vshared_game_score_directory = build_unibyte_string (PATH_GAME); | 1590 | Lisp_Object path_game = build_unibyte_string (PATH_GAME); |
| 1591 | if (NILP (Ffile_accessible_directory_p (Vshared_game_score_directory))) | 1591 | if (file_accessible_directory_p (path_game)) |
| 1592 | Vshared_game_score_directory = Qnil; | 1592 | gamedir = path_game; |
| 1593 | #endif | 1593 | } |
| 1594 | Vshared_game_score_directory = gamedir; | ||
| 1594 | } | 1595 | } |
| 1595 | 1596 | ||
| 1596 | void | 1597 | void |
| @@ -1661,11 +1662,6 @@ includes this. */); | |||
| 1661 | DEFVAR_LISP ("shared-game-score-directory", Vshared_game_score_directory, | 1662 | DEFVAR_LISP ("shared-game-score-directory", Vshared_game_score_directory, |
| 1662 | doc: /* Directory of score files for games which come with GNU Emacs. | 1663 | doc: /* Directory of score files for games which come with GNU Emacs. |
| 1663 | If this variable is nil, then Emacs is unable to use a shared directory. */); | 1664 | If this variable is nil, then Emacs is unable to use a shared directory. */); |
| 1664 | #ifdef DOS_NT | ||
| 1665 | Vshared_game_score_directory = Qnil; | ||
| 1666 | #else | ||
| 1667 | Vshared_game_score_directory = build_string (PATH_GAME); | ||
| 1668 | #endif | ||
| 1669 | 1665 | ||
| 1670 | DEFVAR_LISP ("initial-environment", Vinitial_environment, | 1666 | DEFVAR_LISP ("initial-environment", Vinitial_environment, |
| 1671 | doc: /* List of environment variables inherited from the parent process. | 1667 | doc: /* List of environment variables inherited from the parent process. |