summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jake2/client/CL_parse.java8
-rw-r--r--src/jake2/qcommon/FS.java12
2 files changed, 13 insertions, 7 deletions
diff --git a/src/jake2/client/CL_parse.java b/src/jake2/client/CL_parse.java
index d7716e2..2cf562b 100644
--- a/src/jake2/client/CL_parse.java
+++ b/src/jake2/client/CL_parse.java
@@ -2,7 +2,7 @@
* CL_parse.java
* Copyright (C) 2004
*
- * $Id: CL_parse.java,v 1.14 2004-10-24 23:48:22 cawe Exp $
+ * $Id: CL_parse.java,v 1.15 2004-10-25 21:57:49 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -56,11 +56,7 @@ public class CL_parse {
// =============================================================================
public static String DownloadFileName(String fn) {
- return FS.Gamedir() + "/" + fn;
-// if (fn.startsWith("players"))
-// return Globals.BASEDIRNAME + "/" + fn;
-// else
-// return FS.Gamedir() + "/" + fn;
+ return FS.BaseGamedir() + "/" + fn;
}
/*
diff --git a/src/jake2/qcommon/FS.java b/src/jake2/qcommon/FS.java
index 2eb591c..434bd97 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.9 2004-10-19 17:23:20 cawe Exp $
+ * $Id: FS.java,v 1.10 2004-10-25 21:57:48 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -633,12 +633,22 @@ public final class FS extends Globals {
* Gamedir
*
* Called to find where to write a file (demos, savegames, etc)
+ * this is modified to <user.home>/.jake2
*/
public static String Gamedir() {
return (fs_userdir != null) ? fs_userdir : Globals.BASEDIRNAME;
}
/*
+ * BaseGamedir
+ *
+ * Called to find where to write a downloaded file
+ */
+ public static String BaseGamedir() {
+ return (fs_gamedir != null) ? fs_gamedir : Globals.BASEDIRNAME;
+ }
+
+ /*
* ExecAutoexec
*/
public static void ExecAutoexec() {