aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/qcommon/Qcommon.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-09-18 12:36:53 +0000
committerHolger Zickner <[email protected]>2004-09-18 12:36:53 +0000
commit6fe4be0be3db81d64f551dbb5ab88541e5050d15 (patch)
tree5caa8c400662fa220bc5bceea1751412e5c70da3 /src/jake2/qcommon/Qcommon.java
parentca3ba393a3dac463c97f6f0a77d3cb130208e4f5 (diff)
first version of data chooser/installer
Diffstat (limited to 'src/jake2/qcommon/Qcommon.java')
-rw-r--r--src/jake2/qcommon/Qcommon.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/jake2/qcommon/Qcommon.java b/src/jake2/qcommon/Qcommon.java
index e260079..f052963 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.6 2004-09-06 20:30:21 hzi Exp $
+ * $Id: Qcommon.java,v 1.7 2004-09-18 12:36:53 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -82,6 +82,10 @@ public final class Qcommon extends Globals {
Cbuf.AddEarlyCommands(true);
Cbuf.Execute();
+ FS.setCDDir(); // use cddir from config.cfg
+ Q2DataTest.run(); // test for valid baseq2
+ reconfigure(); // reload default.cfg and config.cfg
+
//
// init commands and vars
//
@@ -227,5 +231,13 @@ public final class Qcommon extends Globals {
}
}
+ static void reconfigure() {
+ Cbuf.AddText("exec default.cfg\n");
+ Cbuf.Execute();
+ Cvar.Set("vid_fullscreen", "0");
+ Cbuf.AddText("exec config.cfg\n");
+ Cbuf.AddEarlyCommands(true);
+ Cbuf.Execute();
+ }
}