aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-05-22 13:32:58 +0000
committerCarsten Weisse <[email protected]>2005-05-22 13:32:58 +0000
commit0cd3707f7342a45117584e06aebbe306da890508 (patch)
tree15777f205e3360244962e65e58dde0a83636aa9c
parent72c7788578032723d81b482e7ae38cbd913effc2 (diff)
bugfix: searchpath for autoexec.cfg changed.
(now it is $HOME/.jake2/autoexec.cfg)
-rw-r--r--src/jake2/qcommon/FS.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/jake2/qcommon/FS.java b/src/jake2/qcommon/FS.java
index 5bab93e..a5cade5 100644
--- a/src/jake2/qcommon/FS.java
+++ b/src/jake2/qcommon/FS.java
@@ -2,7 +2,7 @@
* FS.java
* Copyright (C) 2003
*
- * $Id: FS.java,v 1.12 2004-11-10 20:41:40 cawe Exp $
+ * $Id: FS.java,v 1.12.4.1 2005-05-22 13:32:58 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -659,14 +659,11 @@ public final class FS extends Globals {
* ExecAutoexec
*/
public static void ExecAutoexec() {
+ String dir = fs_userdir;
- String dir;
String name;
-
- dir = Cvar.VariableString("gamedir");
-
if (dir != null && dir.length() > 0) {
- name = fs_basedir.string + '/' + dir + "/autoexec.cfg";
+ name = dir + "/autoexec.cfg";
} else {
name = fs_basedir.string + '/' + Globals.BASEDIRNAME
+ "/autoexec.cfg";