summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2005-05-14 10:10:45 +0000
committerHolger Zickner <[email protected]>2005-05-14 10:10:45 +0000
commit75b51e43d2be15c333fdfa81f61dc532ce1ef78c (patch)
tree10d67836b6df9a4eb27869997e79930628242f89
parent70af2ed3587c2cead200aba63d201501da67af3c (diff)
write config.cfg as soon as baseq2 is initialized to avoid questioning again
-rw-r--r--src/jake2/client/CL.java8
-rw-r--r--src/jake2/qcommon/Qcommon.java5
2 files changed, 8 insertions, 5 deletions
diff --git a/src/jake2/client/CL.java b/src/jake2/client/CL.java
index a5d6fb0..fd1c4d0 100644
--- a/src/jake2/client/CL.java
+++ b/src/jake2/client/CL.java
@@ -2,7 +2,7 @@
* CL.java
* Copyright (C) 2004
*
- * $Id: CL.java,v 1.20 2005-02-08 21:48:21 cawe Exp $
+ * $Id: CL.java,v 1.21 2005-05-14 10:10:44 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -1426,12 +1426,12 @@ public final class CL {
*
* Writes key bindings and archived cvars to config.cfg ===============
*/
- static void WriteConfiguration() {
+ public static void WriteConfiguration() {
RandomAccessFile f;
String path;
- if (Globals.cls.state == Defines.ca_uninitialized)
- return;
+// if (Globals.cls.state == Defines.ca_uninitialized)
+// return;
path = FS.Gamedir() + "/config.cfg";
f = Lib.fopen(path, "rw");
diff --git a/src/jake2/qcommon/Qcommon.java b/src/jake2/qcommon/Qcommon.java
index f0a7764..ed81b71 100644
--- a/src/jake2/qcommon/Qcommon.java
+++ b/src/jake2/qcommon/Qcommon.java
@@ -2,7 +2,7 @@
* Qcommon.java
* Copyright 2003
*
- * $Id: Qcommon.java,v 1.15 2005-02-13 17:12:55 cawe Exp $
+ * $Id: Qcommon.java,v 1.16 2005-05-14 10:10:45 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -84,6 +84,9 @@ public final class Qcommon extends Globals {
Jake2.Q2Dialog.testQ2Data(); // test for valid baseq2
reconfigure(true); // reload default.cfg and config.cfg
+ // save config when we have a valid baseq2
+ CL.WriteConfiguration();
+
//
// init commands and vars
//