From 0cd3707f7342a45117584e06aebbe306da890508 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sun, 22 May 2005 13:32:58 +0000 Subject: bugfix: searchpath for autoexec.cfg changed. (now it is $HOME/.jake2/autoexec.cfg) --- src/jake2/qcommon/FS.java | 9 +++------ 1 file 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"; -- cgit v1.2.3