aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/qcommon
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2004-10-25 21:57:49 +0000
committerCarsten Weisse <[email protected]>2004-10-25 21:57:49 +0000
commit9db92c11ce4d047e1661707378dd574626ec038f (patch)
tree72a256d7a89e30148efaac667f00f08b5fe6da19 /src/jake2/qcommon
parentdbf7fe54e41a0c9dccd01a34bbe8c98091185e7f (diff)
downladed files will be stored in level directory
(save games and config.cfg put to .jake2)
Diffstat (limited to 'src/jake2/qcommon')
-rw-r--r--src/jake2/qcommon/FS.java12
1 files changed, 11 insertions, 1 deletions
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() {