Browse Source

Added javadoc comments to Config.java and fixed getConfigDir to include .DMDirc/

git-svn-id: http://svn.dmdirc.com/trunk@12 00569f92-eb28-0410-84fd-f71c24880f
tags/0.1
Chris Smith 17 years ago
parent
commit
00e03a4af6
1 changed files with 11 additions and 2 deletions
  1. 11
    2
      src/dmdirc/Config.java

+ 11
- 2
src/dmdirc/Config.java View File

@@ -23,7 +23,7 @@
23 23
 package dmdirc;
24 24
 
25 25
 /**
26
- *
26
+ * Reads/writes the application's config file
27 27
  * @author chris
28 28
  */
29 29
 public class Config {
@@ -32,12 +32,21 @@ public class Config {
32 32
     public Config() {
33 33
     }
34 34
     
35
+    /**
36
+     * Returns the full path to the application's config file
37
+     * @return config file
38
+     */
35 39
     private static String getConfigFile () {
36 40
         return getConfigDir()+"dmdirc.xml";
37 41
     }
38 42
     
43
+    /**
44
+     * Returns the application's config directory
45
+     * @return configuration directory
46
+     */
39 47
     private static String getConfigDir () {
40
-        return System.getProperty("user.home")+System.getProperty("file.seperator");
48
+        String fs = System.getProperty("file.seperator");
49
+        return System.getProperty("user.home")+fs+".DMDirc"+fs;
41 50
     }
42 51
     
43 52
 }

Loading…
Cancel
Save